XDEBUG Disable Step Debugger
Hi Jürgen,
I have a small concern regarding XDebug that I cannot solve, but which may also be important for other l3d users in the future. Hence the ticket. Note: Its nothing about functionallity. Everything works fine as intended.
Problem presentation based on debugging a drush command:
If I want to debug a drush command via the console (not in Php storm), the CLI outputs the output step by step. Is it possible to deactivate this somewhere? The documentation shows that step debugging is activated by this ENV var:
PHP_XDEBUG_MODE: debug
So my approach was to edit the docker-compose.yml smth like this: (I tried it with various variables which i took out of the official Documentation: https://xdebug.org/docs/all_settings, the following snippet is just for showcase purpose)
XDEBUG_CONFIG: "remote_enable=1 remote_host=127.0.0.1 remote_port=9003 idekey=PHPSTORM remote_autostart=1 remote_connect_back=On"
Use case: As a Drupal developer I debug quite frequently via the CLI. The output will be displayed via PHP Storm etc etc. So the actual debugging takes place in PHP Storm, but the command for this is entered in the development workflow via a console outside of PHP-Storm. As a result, one need CLI debugging, but the messages in the console (Step-Debuging) is obsolete.
Example drush command wsc:
What I want: (dont wonder its out of the drupal vm therefore xdrush command)
Question: Do you know of a way how this output of the step debugging can be deactivated and CLI debuging remains activated?
I know its an edge case but this is my task.
I looked already into the official documentation: https://xdebug.org/docs/step_debug
Also I looked into various forums like these:
https://newbedev.com/xdebug-disable-step-debug-time-out-connecting-to-debugging-client-waited-200-ms-tried-localhost-9003-through-xdebug-client-host-xdebug-client-port-code-example
https://ddev.readthedocs.io/en/v1.5.9/users/step-debugging/
Basically thats it. There is no more to find in the www. I am either to stupid or cant search right. Would be loveley if you can help me out if you see some benefit for future users.