Xdebug 3: Debugging Symfony Console Commands

preview_player
Показать описание
In this video I am installing Xdebug with PECL on Linux so that we can debug a Symfony Console Command on the CLI with PhpStorm. The video also shows Exception breakpoints.
Рекомендации по теме
Комментарии
Автор

3:28 thanks for the magic command. It really helped me

zhartaunik
Автор

XDEBUG_TRIGGER environment value must be the trigger value you specified in PHPStorm XDebug configuration as IDE key (session id).

Also if you face "Cannot parse server name for external Xdebug connection. To fix it create environment variable PHP_IDE_CONFIG on the remote server." error. Then inside your PHP container you also need to specify the name of the XDebug server you specified in PHPStorm XDebug configuration. Mine was for example:

nurimustafa
Автор

Learned some interesting things for myself. Thanks!

andrii.adventure
Автор

Looks like it's Development Helpers => ✔ enabled now, not Development Aids.

XiagraBalls
Автор

Enable Xdebug manually in PhpStorm using command line - XDEBUG_TRIGGER=yes php bin/console bla:bla 789

maximsymfony