I've switched from Eclipse to PHPStorm and everything is working fine but only the debugging with XDebug ans SoapUI is still not working.
XDebug is installed. I used to add a GET parameter ?XDEBUG_SESSION_START=ECLIPSE_DBGP on the end of the wsdl url in SoapUI and Eclipse stopped at the first breakpoint properly.
When I close Eclipse, start PHPStorm and click to start listening for debug connections nothing happens.
I use ?XDEBUG_SESSION_START=PHPSTORM_DBGP. Only a Chrome-Plugin is able to start debugging in PHPStorm, but I need to debug with SoapUI too.
Can anyone help me with this issue?
Thank you very much in advance for any help!
I had to set path settings at PHP Servers configuration.
Related
I am trying to debug my code and the tomcat server starts in debug mode, but the eclipse doesn't show debug perpective and however it skips all breakpoints and is working like in normal run.
So can someone tell me how to fix this, so it stops on setted breakpoints?
Thanks for help
Okay, I'm killing myself over this. I've been trying every single tutorial I can and still not luck. Aptana is just "waiting for XDebug Session".
I have XDebug setup on my remote server on port 9000.
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.remote_mode="jit"
This all seems to be correct and phpinfo makes it look correct. Now I went into Aptana to set this up and all of the tutorials involve localhost in some way. Maybe I am severely overlooking a component of xdebug (can it only debug local?). There is no way currently to have my application run locally because I am running nontraditional stack items which I don't want to install just for this.
I have setup aptana php interpreter: http://grab.by/poMm
I have setup aptana remote server using my base url and the local file document root
I have chrome xdebug helper turned on using key ECLIPSE_DBGP
Aptana is still just waiting for XDebug session. Please help!
Here is the relevant part of my (working) php.ini:
zend_extension=/usr/local/zend/lib/php_extensions/xdebug.so
xdebug.remote_enable=on
xdebug.remote_log="/var/log/xdebug.log"
xdebug.remote_host=localhost
xdebug.remote_handler=dbgp
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.remote_connect_back=1
Note, there are several differences between your config and mine:
You enclose many of your vars with quotes
"On" should probably be "on" (without quotes)
there is no reference to auto_start or connnect_back
Try making those changes and see if that does it for you.
I have am trying to debug some PHPunit tests in netbeans, but it doesn't stop at my break-points.
I can, however, debug the site in the browser and it stops at my breakpoints.
I have modified file->project properties->run configuration->advanced to "do not open web browser".
I use the following script to initiate phpunit :
export XDEBUG_CONFIG="idekey=netbeans-xdebug";
phpunit $#
What could be the problem?
ps. I have had it working in the past, but it stopped working and I had to reinstall xdebug. I am using ubuntu 11.10
Thanks.
This usually happens when your port is not set to listen on xdebug's default listener port 9000.
Here's some instructions on mac for netbeans but it should do the trick even if you're running windows.
http://netbeans.org/kb/docs/php/configure-php-environment-mac-os.html
I've been debugging in Eclipse with Xdebug without any problems, but for some reason since this morning, when I try to start a debug session, I get an error like this from Eclipse:
"The file 'http://localhost/index.php?XDEBUG_SESSION_STOP_NO_EXEC=ECLIPSE_DBGKEY=13288911493954' could not be found.
In my phpinfo file, I can see that Xdebug is working.
I'm using Elipse 3.7.1, Xdebug 2.1.3.
This is the Xdebug config in my php.ini file:
zend_extension = "c:/wamp/bin/php/php5.3.8/zend_ext/php_xdebug-2.1.3-5.3-vc9-x86_64.dll"
[XDebug]
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
Any help will be greatly appreciated.
The message you receive is because Eclipse is trying to stop a debugging session. It's a wrong URL as well, as it should really say "http://localhost/index.php?XDEBUG_SESSION_STOP_NO_EXEC=1". Why it wants to stop, I can't tell you, but the ?XDEBUG_SESSION_STOP_NO_EXEC=1 gets captured by Xdebug and makes the request not proceed.
To find out, you can perhaps use the xdebug.remote_log setting (http://xdebug.org/docs/all_settings#remote_log) to create a log file on what Eclipse is trying to get Xdebug to do.
I am currently trying to setup Xdebug on an XP computer with Eclipse PHP installed. I am using WAMP and I'll think I have done everything by the book (as intended by several tutorials online), but when I'll try to execute the Debugging and start the session, nothing happens, which also is notified by Eclipse. Another tab is opened with the GET-string appended in Firefox, but that's about it.
I have no Idea of what to do to make it work, but I'll guess that im not the first one having this issue, so asking here might not be a bad idea!
I am very grateful for any answers that could help me out in the right direction. Debugging is a brand new thing for me.
Thanks!
Here is also some info:
Eclipse says:
Launching: Waiting for Xdebug session
Here is how my php.ini looks:
[xdebug]
zend_extension="c:/wamp/php/ext/php_xdebug-2.1.0beta2-5.3-vc6.dll"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_mode=req
xdebug.idekey=default
xdebug.remote_log="C:/xdebug.log"
xdebug.remote_port=9000
xdebug.show_exception_trace=0
xdebug.show_local_vars=9
xdebug.show_mem_delta=0
xdebug.trace_format=0
And the URL:
http://localhost/debugtest/index.php?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=12658406113583
After everything checked out correct (browser path, listening port, php -i, XDEBUG_SESSION_START=..., duct tape, etc.) and it still sat there waiting for Godot, rebooting fixed the problem. Yay Windows.
Your stuff looks good but, how is your IDE setup?
What port is it listening on and what KEY is it sending?
Also, I always set a xdebug_break() breakpoint in code to get xdebug to catch and start talking to my IDE.
Have you tried that?