Note that there are some explanatory texts on larger screens.

plurals
  1. POSetting up IntelliJ Idea remote debugging with XDebug
    primarykey
    data
    text
    <p>I have been trying to set up remote debugging in IntelliJ Idea and Xdebug for several days in a row with no success.</p> <p>I have a Windows 7 host and VM VirtualBox with Windows XP as a web server. It has WampServer installed with Apache, PHP and Xdebug.</p> <p>Xdebug is configured correctly:</p> <pre><code>Summary Xdebug installed: 2.2.3 Server API: Apache 2.0 Handler Windows: yes - Compiler: MS VC9 - Architecture: x86 Zend Server: no PHP Version: 5.4.16 Zend API nr: 220100525 PHP API nr: 20100525 Debug Build: no Thread Safe Build: yes Configuration File Path: C:\WINDOWS Configuration File: C:\wamp\bin\apache\apache2.4.4\bin\php.ini Extensions directory: c:\wamp\bin\php\php5.4.16\ext </code></pre> <p>Web server and PHP work Ok, without any issues.</p> <p>Here are my steps of setting up the remote debugging in Intellij:</p> <p>File->Settings->PHP->Servers <img src="https://i.stack.imgur.com/mf2dG.jpg" alt="enter image description here"></p> <p>Run/Debug Configurations: <img src="https://i.stack.imgur.com/OKUPq.jpg" alt="enter image description here"></p> <p>php.ini xdebug section:</p> <pre><code>[Xdebug] zend_extension = "c:\wamp\bin\php\php5.4.16\zend_ext\php_xdebug-2.2.3-5.4-vc9.dll" ;xdebug.profiler_enable=1 xdebug.profiler_output_dir="c:\wamp\tmp" xdebug.remote_autostart=1 xdebug.remote_enable=1 ;xdebug.remote_handler=dbgp ;xdebug.remote_mode=req xdebug.remote_port=9000 xdebug.remote_host=192.168.56.1 ;xdebug.idekey="intellij" </code></pre> <p>Those line commented are ones I already tried to turn on/off without success.</p> <p>When I start debugging session, from IntelliJ, it opens a browser with address <code>"http://192.168.56.101/index.php?XDEBUG_SESSION_START=some id"</code>, while debugger starts waiting on the same id.</p> <p>What I have already tried: - disable / tune firewalls - change the default listening port - set up "Remote debug configuration" template with manual starting debugger from browser and many others.</p> <p>I used a sniffer to make sure that my host receives something on port 9000: it indeed receives 62 bytes from the server:</p> <p><img src="https://i.stack.imgur.com/itM99.jpg" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/QloQg.jpg" alt="enter image description here"></p> <p>but without data. Is this normal? Please give me a hint where to dig further?</p> <p>Thank you all in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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