Debug VM with xDebug and PhpStorm
-
My work setup is a Windows XP host, running an Ubuntu VM LAMP stack. I am using PhpStorm to edit my code on my host Windows machine. Upon saving files are automatically uploaded to the VM via SFTP. Everything works for this process, except debugging. I have setup PhpStorm to have a server named "UbuntuVM" with the following settings: Debugger: - XDebug Debug session settings: - Break at the first line - Wait for connection with ide key: XDEBUG_PHPSTORM Before launch: - Upload files to selected server I am using Chrome with Xdebug Helper, and have set the extension to use "Other" as the IDE, with "XDEBUG_PHPSTORM" as the key. The VM has the following in the php.ini: zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so" xdebug.remote_enable=1 xdebug.remote_host=10.1.6.22 xdebug.remote_port=9000 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.collect_params=On xdebug.show_local_vars=On When I set a break point in my IDE, enable the debugger in Chrome, and reload the page, I never hit the break point; and the IDE says "Waiting for connection on port 9000 with ide key 'XDEBUG_PHPSTORM'". Does anyone have any idea why I'm not hitting my break points?
-
Answer:
Comes to find out that xdebug.remote_host isn't needed, rather, use xbebug.remote_connect_back=1.
Andrew Ellis at Stack Overflow Visit the source
Related Q & A:
- How can I debug my php code?Best solution by Stack Overflow
- How to debug a core file without debug symbols?Best solution by Stack Overflow
- How to debug an HTML page on mobile?Best solution by msdn.microsoft.com
- How do I debug with Pyglet?Best solution by Game Development
- How to debug subsequent request in Phpstorm?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.