Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Although it sounds like you moved on, I'll add this for anyone else coming across your question...</p> <p>I'm also running WAMP and had no problems getting Xdebug to work with Sublime Text 2. Make sure you follow the <a href="http://www.xdebug.org/wizard.php" rel="nofollow" title="Tailored Installation Instructions">Tailored Installation Instructions</a> for Xdebug, which should set you up with the appropriate Xdebug DLL and php.ini statements (make sure you're editing the correct php.ini!), equivalent to the following (which pretty much match what @Duke and @jasonmcclurg already said above):</p> <pre><code>zend_extension = "D:\Program Files (x86)\Wamp\bin\php\php5.3.6\ext\php_xdebug-2.2.2-5.3-vc9.dll" xdebug.remote_enable=on xdebug.remote_handler=dbgp xdebug.remote_host=localhost xdebug.remote_port=9000 </code></pre> <p>You can check if Xdebug is properly installed on your local server by checking the output of <code>phpinfo()</code>, refer to the <a href="http://xdebug.org/docs/faq" rel="nofollow" title="Xdebug FAQ">Xdebug FAQ</a> for some specifics.</p> <p>As per <a href="https://github.com/Kindari/SublimeXdebug" rel="nofollow" title="SublimeXdebug">SublimeXdebug's Readme</a>, use <kbd>Shift</kbd>+<kbd>F8</kbd> in Sublime and select Start Debugger from the drop down that appears, then set a breakpoint in your PHP code (put the caret on the desired line of PHP code, press <kbd>Shift</kbd>+<kbd>F8</kbd>, select Add/Remove Breakpoint).</p> <p>To trigger <a href="http://xdebug.org/docs/remote" rel="nofollow" title="Remote Debugging">remote debugging</a> (get xdebug to connect), append the query string<code>?XDEBUG_SESSION_START=1</code> to your local site's URL (e.g., <code>http://localhost/index.php?XDEBUG_SESSION_START=1</code>) or use a browser extension/addon that does the equivalent for you (e.g., <a href="http://userscripts.org/scripts/review/132695" rel="nofollow" title="xdebug_session helper">xdebug_session helper for Chrome</a>, or, which is what I use, <a href="http://www.elime.be/easyxdebug.htm" rel="nofollow" title="easy xdebug">easy Xdebug for Firefox</a>). Yet another alternative is to have SublimeXdebug trigger remote debugging automatically, see refer SublimeXdebug's Readme for details.</p> <p>Once your browser requests a page which references the PHP file with your breakpoint (and assuming the PHP interpreter actually reaches the specific line with your breakpoint, i.e., your script doesn't branch elsewhere, or your app/CMS doesn't return a cached page, possibly forfeiting execution of your script), execution should halt at the breakpoint...</p> <p>If everything is set up correctly but your breakpoint is not reached, SublimeXdebug briefly displays "<em>Xdebug: Page finished executing. Reload to continue debugging.</em>" on Sublime's status bar when the browser finishes loading a page.</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