PhpStorm
 
Get PhpStorm

Starting a debugging session from the command line

Last modified: 17 January 2023

You can start debugging a PHP CLI script from the command line, having PhpStorm listen for incoming debugger connections.

  1. Set the breakpoints where necessary.

  2. Click the the Start Listening for PHP Debug Connections button 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.

  3. Start the script with debugger options depending on the debugging engine you are using - Xdebug or Zend Debugger.