/xdebug-wrappers

Wrappers for php binary to simplify debugging with Xdebug

Primary LanguageShell

Xdebug Wrappers

Average time to resolve an issue Percentage of issues still open

Debugging CLI applications is a massive pain, because you usually don't have Xdebug enabled as it negatively affects performance of tools like phpunit or composer. You can enable xdebug inline in the command with -d argument. But not everyone is keen to remember obscure onliners. And you shouldn't! That's what Xdebug wrappers are for!

Instalation

Usage in PhpStorm

  • add a breakpoint in my-script.php
  • in menu Run --> Start Listening for PHP Debug Connections
  • run your CLI script xdebug my-script.php