- How do I run debug from command line?
- How to debug PHP command line?
- How do I know if Xdebug is running?
How do I run debug from command line?
To get out of debugging mode, you need to type "Q" and press Enter . To execute the debug routine, you need to type "G" and press Enter .
How to debug PHP command line?
You can start debugging a PHP CLI script from the command line, having PhpStorm listen for incoming debugger connections. Set the breakpoints where necessary. Start Listening for PHP Debug Connections button on the toolbar/the status bar or select Run | Start Listening for PHP Debug Connections from the main menu.
How do I know if Xdebug is running?
Verify that Xdebug is properly running by checking again with phpinfo() or php -v as explained above. Note that 9003 is the default port. If this port is used by another service on your system, change it to an unused port. After adding these settings, restart your webserver again.