Skip to content

Instantly share code, notes, and snippets.

@hicarorios
Created December 20, 2018 19:55
Show Gist options
  • Select an option

  • Save hicarorios/424d853c8f2f87efe13fb718daf0224c to your computer and use it in GitHub Desktop.

Select an option

Save hicarorios/424d853c8f2f87efe13fb718daf0224c to your computer and use it in GitHub Desktop.
Configurar o servidor embutido do PHP com xdebug no PHPStorm
Para acessar a configuração no PHPStorm: ctrl + shift + A -> type: run debug -> Add Configuration -> + -> PHP Built-in Web Server
se você tem um script server.php (para simular o mod_rewrite do apache*, roteador inicial) você deve marcar a opção "Use route script"
em "interpreter options" coloque: -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1
o resultado será: php -S localhost:8000 -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment