Eclipse Helios not stopping at breakpoints - eclipse

I recently upgraded from Eclipse Galileo to Helios. Helios stops at breakpoints ONLY when debugging "as a PHP Script", but not when debugging "as a Web Page".
When debugging as a web page, it looks like the correct debug query string to start a debug session is getting tacked on to the url, like so:
http://localhost/hello.php?XDEBUG_SESSION_START=ECLIPSE_DBGP &KEY=129798139020511
but elipse does not stop at the breakpoints. It just zooms thru the code and displays the output in the browser.
This is my xdebug configuration in php.ini that works for Galileo, but is not working for Helios: (click here to see my entire xdebug config settings)
;extension=xdebug.so <-- is this needed?
zend_extension=" /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-no n-zts-20090626/xdebug.so "
xdebug.remote_enable=on
xdebug.remote_autostart=off
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.idekey=
; to enable remote debugging
zend_debugger.allow_hosts=127.0.0.1/32
zend_debugger.expose_remotely=always
Can you post your xdebug configuration that works for Helios? If possible, can you share the xdebug portion of your phpinfo() output? Would like to compare settings of an xdebug configuration that works on Helios with what I have.

I am having the exact same issue. I did find some bug reports about breakpoints in Galileo not being able to be used in Helios. I can get Helios to stop on breakpoints at times, but I have to delete all my breakpoints and then start debugging, and only after that add a breakpoint. Needless to say this is very annoying. I'll try and find the link that I saw and add it to here.
For now I've gone back to Galileo.
Malks.

I'm using:
Ubuntu 14.04 64 bits
Eclipse Luna
Nginx
PHP Fpm (via socket)
I solved this debugging problem disabling IPV6
Edit /etc/sysctl.conf and add the following lines:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
Then reboot or sudo sysctl -p

Related

how to debug using basheclipse

"Basheclipse installation issue" does not address my issue and thats why I ask a new question.
Hi, I am running Eclipse Luna on Windows 7
I followed all the instructions on http://sourceforge.net/projects/basheclipse/files/
I have never worked on Eclipse. I am stuck on 7th step(pasted below)
7) Switch to The Debug perspective. Start the debugging session. Launch "script.sh" from bash shell.
Please help me do this.
When I used the debug button it says "Launching new configuration has encountered an error Bash is already running."
I tried the run button and it says "Couldnt find Interpreters. Do you want to configure interpreters now?"
edit:ok the debug perspective is on now.
edit:ok looks like a bug
http://sourceforge.net/p/shelled/discussion/399718/thread/6272268c/
any way to circumvent this?
"Launching new configuration has encountered an error Bash is already running."
--> just relaunch your eclipse and then it will work without any problem.
"Anyone tried installing Eclipse and debugging on a Linux machine?"
--> yes. eclipse neon and jdk 8.
You can follow my tutorial at http://dietrichschroff.blogspot.de/2017/07/bash-enabling-eclipse-for-bash_14.html

PHPunit and netbeans debugging not stopping at breakpoints

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

php unit-testing, eclipse PDT, makegood, xdebug

Is there any way to force makegood stop on breakpoints in order to inspect vars,etc ?
I installed eclipse indigo 3.7 + PDT tools, secondly I configured xdebug and it works during plain debug. at last I installed makegood from marketplace and enabled it's feature "Debug Test" and yet it doesn't stop at breakpoints instead it shows me report, which is correct, plus some buggy lines like:
/mnt/public/midnight/www/sandbox/makegood/Tests/makeGoodTest.php:11
/home/midnight/Software/eclipse/plugins/com.piece_framework.makegood.stagehand_testrunner_1.9.0.v201201241509/resources/php/PEAR/Stagehand/TestRunner/Runner/PHPUnitRunner.php:112
/home/midnight/Software/eclipse/plugins/com.piece_framework.makegood.stagehand_testrunner_1.9.0.v201201241509/resources/php/PEAR/Stagehand/TestRunner/TestRunner.php:79
/home/midnight/Software/eclipse/plugins/com.piece_framework.makegood.stagehand_testrunner_1.9.0.v201201241509/resources/php/PEAR/Stagehand/TestRunner/TestRunnerCLIController.php:325
/home/midnight/Software/eclipse/plugins/com.piece_framework.makegood.stagehand_testrunner_1.9.0.v201201241509/resources/php/PEAR/Stagehand/TestRunner/TestRunnerCLIController.php:175
/home/midnight/Software/eclipse/plugins/com.piece_framework.makegood.stagehand_testrunner_1.9.0.v201201241509/resources/php/PEAR/Stagehand/CLIController.php:101
/home/midnight/Software/eclipse/plugins/com.piece_framework.makegood.stagehand_testrunner_1.9.0.v201201241509/resources/php/bin/phpunitrunner.php:80
My /etc/php5/conf.d/xdebug.ini:
zend_extension="/usr/lib/php5/20090626/xdebug.so"
xdebug.profiler_enable = Off
xdebug.default_enable = On
xdebug.remote_enable = On
I'm sorry but I don't use makegood but I do know that xdebug has a function you can call from the code to trigger a break.
xdebug_break();
bool xdebug_break()
Emits a breakpoint to the debug client. This
function makes the debugger break on the specific line as if a normal
file/line breakpoint was set on this line.
I hope this will be of some help.
There is a button "Debug Test" for this in the MakeGood View.
To use if configure Eclipse Debuging using e.g. XDebug and then set a breakpoint and run your tests.
See https://wiki.eclipse.org/Debugging_using_XDebug

Why can't I start a debug session on Eclipse using Xdebug?

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.

Xdebug and Netbeans not collaborating: No connection from xdebug was detected

I've just installed xdebug and netbeans on my ubuntu 11.10.
I'd like to use xdebug but even if I paste my php info in the xdebug page (http://xdebug.org/find-binary.php) and it says "You're already running the latest Xdebug version" when I try to debug from Netbeans I get the "No connection from xdebug was detected" error.
In Netbeans options I have port 9000 and in my xdebug.ini I have:
zend_extension = "/usr/lib/php5/20090626+lfs/xdebug.so"
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
What am I doing wrong?
I don't know if it helps, but I have one line different and one more line:
xdebug.remote_enable=1
xdebug.remote_mode=req
There's a small HowTo http://wiki.netbeans.org/HowToConfigureXDebug
Running the latest version might not be the best option in this case. Have you checked if your version of PHP is compatible with the latest version of xdebug? You could try the wizard on the xdebug.org site link. Futhermore, you could add xdebug.idekey=netbeans-xdebug tot the php.ini file.