I'm running eclipse PDT on a xubuntu 10.9 VM, using xdebug to remote debug PHP 5.3.
I have been having a number of issues over the last 6 months, things like:
Debugger stops responding to breakpoints after being dormant for 20+ minutes.
Debugger will exit suddenly with the fatal error "unexpected termination". Requires eclipse to be restarted to debug again.
Non fatal errors will pop up, I possibly think this is due to modifying code during execution.
Is this an issue that can be fixed by upgrading or switching to Zen? Its really frustrating compared to using PyDev or Java debuggers.
Is anyone else experiencing this same sort of issue?
With Eclipse, xdebug is sometimes a little unstable. Here, I use Zend Studio with Zend Debugger and xdebug. Everything works fine.
About breakpoints stops, I got a issue too. The only way to control this was use the Zend Toolbar to call debugger from Firefox/IE.
I know people that works fine with Netbeans + xdebug, too.
Try to download and install Zend Debugger and configure your Eclipse to work with it. Eclipse Helios has many improvements around it - try it if you use a older Eclipse version.
Related
I recently installed Xdebug on my server and I have a very strange problem :
Sometimes, Xdebug don't stop a breakpoint, sometimes it does. It is very confusing because I spent time investigating why PHP didn't go to a certain point of my code, before understanding that it was only Xdebug that "choose" randomly which breakpoint it want to stop, and which it doesn't want. I tried to close PhpStorm and restart it, and sometimes some of the breakpoints work again and other doesn't anymore. It seems that its completely random.
I'm using PhpStorm 2019.1, and Xdebug 2.7. I did the PhpStorm Xdebug validator that told me everything is OK with the Xdebug config.
I'm using Xdebug with "zero-configuration", calling scripts from Chrome with the extension. Do you think it can be a bug of PhpStorm?
We are using xampp with PHP in our local machine. We would like to use the netbeans IDE for debugging our application. We followed the steps as referred in https://netbeans.org/kb/docs/php/debugging.html#debuggingSession. We installed netbeans version 8.2
Currently we are able to configure the project and are able to set the break points.
But while executing, the application is not getting stopped at the break points
We also tried the setting ‘xdebug.extended_info = 1’ as referred in Netbeans 8.0.2 Debugger Breakpoints Not Working. But still this is not working
Could you please suggest what we missed.
Thanks
Zend Eclipse for PHP Developers Version: 3.2.0
php5.4.12 (wamp)
I'm using php eclipse xdebug for a few years now - sometime the xdebug doesn't break.
I notice that it happen mostly on ajax calls, and I found that one cause is that the previous debug session didn't end.
But now I'm debugging an ajax call,
I'm using the chrome devtool and I do 'replay XHR' to run the exact same ajax call, and it doesn't break 2 out of every 3 runs.
This is a great waste of time for me and I would appreciate any idea of how to overcome it, including a suggestion for a different (and better debugger)
Note:
upgrading the php is not an option because I must use the same version as the production sev.
I also tried upgrading the eclipse - but it causes to many (other) issues
In eclipse->preferences->PHP->Debug->Installed debuggers
choose Xdegbug, and click configure
check the Use Multisession checkbox
click ok
This will cause xdebug to break even when a session is already running - but it can be a pain when submiting multiple requests.
I´m starting working with PHP on Eclipse and I´m having a bad time with XDebugger. This is my first time setting up this enrironment...
I´m running Eclipse 3.8.1 with PHP Development Tools SDK (I have also C++ installed on this Eclipse).
I´ve followed the instruction from the official xdebug site to install XDebug. It seens to be installed fine, as we can see from a phpinfo() call:
Well, once installed, I go to Eclipse, insert my breakpoints on the code, configure the debug configuration and when I call Debug As->PHP Web Application all I get is an empty window on Firefox with the following link:
http://localhost/myproject/index.php?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=14380396300041
Absolutely nothing happens neither to Eclipse or on Firefox.
Here is my configuation for debugging:
PS: I haven´t installed anything related to ZEND. Is it necessary ? Here is a error I get when using the Zend Debugger option:
Help appreciated!!! Hope this will be basic learning for solving...
To debug on zend debugger, you need zend debugger installed.
For xdebug remote debugging (browser run) you have to enable dbgp protocol:
https://wiki.eclipse.org/Debugging_using_XDebug#Configuration
I'm on a new box at work setting up my environment. I configured netbeans like the instructions said here. I've done this before. It was rather straight forward last time and worked the first time (a rare treat in programing). However, when I run xdebug in netbeans I can't view variable values or object structures. Here is a screen shot.
Netbeans Screen Shot
There should be more information. I can print the $model variable to the screen. It has array values and other information.
NetBeans IDE 6.9.1
xdebug 2.1.1
xampp 1.74
I had the same problems with xDebug and the current Eclipse PDT under Windows 7 and was unfortunately unable to resolve them.
I finally switched to the WAMP distribution where the same configuration seems to work.
I just did a reinstall of my wamp environment. I grabbed the newest xampp and used the xdebug dll it came with. It now works. I'm guessing this was a PHP/xdebug version mismatch.