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

Starting a debugging session from the command line

Last modified: 14 January 2022

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. On the toolbar, click the the Start Listening for PHP Debug Connections button Start Listening for PHP Debug Connections button 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.