Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Please <a href="http://youtrack.jetbrains.net/issue/WI-5132" rel="noreferrer">watch/vote</a> the related PhpStorm issue. </p> <p>At the moment configuration is a bit complicated. It should be possible to debug like <a href="http://kb.zend.com/index.php?View=entry&amp;EntryID=130" rel="noreferrer">described in the Zend KB</a>, with a fake server and <strong>Php Remote Debug</strong> configuration in PhpStorm. Note that this tutorial has an error, you need to set QUERY_STRING like this (on Windows):</p> <pre><code>SET "QUERY_STRING=start_debug=1&amp;debug_port=10137&amp;debug_host=127.0.0.1&amp;debug_stop=1&amp;no_remote=1&amp;debug_session_id=10000" </code></pre> <p>(note the difference in quoting which is important).</p> <p>Set up PhpStorm like shown on the screenshots:</p> <p><img src="https://i.stack.imgur.com/ClKOi.png" alt="fake server"></p> <p><img src="https://i.stack.imgur.com/zvmQA.png" alt="remote debug"></p> <p>Press the <strong>Debug</strong> button on the main toolbar. PhpStorm will start listening for the debugger connections.</p> <p>In the command line run your script:</p> <pre><code>d:\dev\zend\ZendServer\bin\php.exe d:\work\attaches\sample\helps.php </code></pre> <p>PhpStorm will hit the breakpoint:</p> <p><img src="https://i.stack.imgur.com/9izJv.png" alt="breakpoint hit"></p> <p>This was tested on Windows with Zend Server installation, but should be similar on the other systems and with xdebug.</p> <p>If you want to debug directly from PhpStorm, use <strong>Php Script</strong> Run/Debug configuration type. Your PHP instance configured for this project must have either <strong>Zend Debugger</strong> or <strong>Xdebug</strong> enabled in the configuration files.</p> <p>PHP home and debugger mode can be specified in <code>File | Settings | PHP</code>.</p> <p>Just verified with Zend server installation (PHP home: <code>d:\dev\zend\ZendServer\bin</code>) and Zend Debugger, works perfectly for me.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload