PhpStorm
 
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

Starting a debugging session from the command line

Last modified: 05 September 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 Start Listening for PHP Debug Connections button Start Listening for PHP Debug Connections (Php icons debug listen off in the classic UI) 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.