Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Breakpoints not working
Breakpoints not working [message #551482] Fri, 06 August 2010 15:10 Go to next message
ltwinner Missing name is currently offline ltwinner Missing nameFriend
Messages: 2
Registered: July 2010
Junior Member
Im working on a drupal project in linux mint. I had been developing it in windows and I was using the Eclipse Helios release for windows. I switched development over to linux mint a few days ago and was using Helios again. However debugging is not working as the debugger doesn't stop at any breakpoints. Im using xdebug but zend debugger doesn't work either.

xdebug is setup correctly with apache and is showing up in phpinfo() so that's not an issue.

Any ideas how to get these breakpoints working? Or does xdebug just not work with Eclipse Helios?

[Updated on: Fri, 06 August 2010 15:42]

Report message to a moderator

Re: Breakpoints not working [message #551491 is a reply to message #551482] Fri, 06 August 2010 15:51 Go to previous messageGo to next message
ltwinner Missing name is currently offline ltwinner Missing nameFriend
Messages: 2
Registered: July 2010
Junior Member
In case someone else has this problem, I fixed it by adding this to php.ini

xdebug.remote_autostart=off


I haven't a clue what it does or why it works but it does. Found it on another thread on this forum.
Re: Breakpoints not working [message #551492 is a reply to message #551482] Fri, 06 August 2010 15:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dkel50.hotremovemail.com

maybe try clearing out all your breakpoints and recreating them.
Alternatively use xdebug and generate an xdebug log to see what PDT is
sending to it in terms of breakpoints (ie filenames and line numbers)

Dave

On 06/08/2010 16:10, ltwinner wrote:
> Im working on a drupal project in linux mint. I had been developing it
> in windows and I was using the Eclipse Helios release for windows. I
> switched development over to linux mint a few days ago and was using
> Helios again. However debugging is not working as the debugger doesn't
> stop at any breakpoints. Im using xdebug but zend debugger doesn't work
> either. Any ideas how to fix it?
>
icon8.gif  Re: Breakpoints not working [message #642234 is a reply to message #551492] Tue, 30 November 2010 14:00 Go to previous messageGo to next message
Atre is currently offline AtreFriend
Messages: 1
Registered: November 2010
Junior Member
I got a similar issue.
I upgraded my eclipse pdt galileo to the newest helios.
I was using xdebug on a joomla project.
My galileo was working well and stopping on breakpoints without any problems, but on the helios release, with exactly the same configuration it was impossible to stop on any breakpoint, the same for "break at first line".
The breakpoints were set on the project one month ago with galileo on debug mode.
I spent many hours to check the configuration, reinstall eclipse helios and then started to be crazy and looking for a secret hidden new function for breakpoint on this helios release.
xdebug.remote_autostart was set to 0 (default value).

Then I try the Dave trick to delete all breakpoints and recreate them...and now it's work like a charm...
So it's seems the helios release was not able to manage the breakpoints set by a previous version.

PS: after I redo the breakpoints on helios, I check again on galileo and these new ones are still working.

Hope this could help somebody else.
Re: Breakpoints not working [message #654998 is a reply to message #642234] Thu, 17 February 2011 22:42 Go to previous messageGo to next message
Rylie  is currently offline Rylie Friend
Messages: 1
Registered: February 2011
Junior Member
For me eclipse (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 post the xdebug portion of your phpinfo() output? Would like to compare settings of an xdebug configuration that works on Helios with what I have.

Thanks in advance.

[Updated on: Thu, 17 February 2011 23:13]

Report message to a moderator

Re: Breakpoints not working [message #655117 is a reply to message #654998] Fri, 18 February 2011 11:07 Go to previous messageGo to next message
sNop is currently offline sNopFriend
Messages: 281
Registered: July 2009
Senior Member
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig45D0BC83F7ED07F8DCB87A5F
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hi,

I have this in my php.ini:
[Xdebug]
;zend_extension_ts=3D"./ext/php_xdebug-2.0.5-5.2.dll"
;zend_extension_ts=3D"./ext/php_xdebug-2.1.0beta2-5.2-vc6.dll "
;zend_extension_ts=3D"./ext/php_xdebug-2.1dev-5.2-vc6.dll"
;zend_extension_ts=3D"./ext/php_xdebug-2.1.0-5.2-vc6.dll"
zend_extension=3D"./ext/php_xdebug-2.1.0-5.3-vc6.dll"
xdebug.remote_enable=3D"1"
xdebug.remote_host=3D"localhost"
xdebug.remote_port=3D9000
xdebug.remote_handler=3Ddbgp
xdebug.remote_mode=3Dreq
xdebug.idekey=3D"ECLIPSE_DBGP"
;xdebug.remote_autostart=3Don
;xdebug.remote_mode=3D"jit"
;xdebug.remote_log=3D"C:\Program Files (x86)\PHP\xdebug.log"
;xdebug.default_enable=3DOff
;xdebug.profiler_enable_trigger=3Don
;xdebug.profiler_output_dir=3D"./profiler"
;xdebug.profiler_output_name=3D"cachegrind.out.%t"
;xdebug.idekey=3Ddefault

and it works without any problems.

And I'm using XDebug Helper Firefox extension, so debugging is very simpl=
e.

http://www.xdebug.org/files/xdebug_helper-0.3.1-fx.xpi


--------------enig45D0BC83F7ED07F8DCB87A5F
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1eUv4ACgkQkCAxuhXMpxWd0ACfbDTWxvMDDGSFvETMRiJM jlvS
rccAnR89iY0SpJnQQC33RJQdbHyuqrZv
=h439
-----END PGP SIGNATURE-----

--------------enig45D0BC83F7ED07F8DCB87A5F--
Re: Breakpoints not working [message #655211 is a reply to message #655117] Fri, 18 February 2011 16:37 Go to previous messageGo to next message
sneakyimp Mising name is currently offline sneakyimp Mising nameFriend
Messages: 41
Registered: December 2009
Member
I'm having the same problem on Ubuntu with Galileo and the very latest XDebug, apache 2.2.16, and php 5.3.3.

I can debug CLI just fine, but debug as web page just results in eclipse launching firefox and ripping through the entire script without any breakpoints. Being a noob, I'm also a bit confused by the manifold options like server paths and using Apache at localhost versus the supposed built-in PDT default server. I'd like to permanently disable the built-in PDT server (if any).

Any tips would be much appreciated.
Re: Breakpoints not working [message #735603 is a reply to message #551482] Wed, 12 October 2011 10:56 Go to previous messageGo to next message
ACCEDO is currently offline ACCEDOFriend
Messages: 1
Registered: October 2011
Junior Member
I had same issue with Helios.
Problem solved using ZendDebugger.
My configuration :
- Eclipse (Helios)
- openjdk-6-jre
- Debian (Squeeze) 64 bits
Re: Breakpoints not working [message #753879 is a reply to message #551491] Sat, 29 October 2011 20:37 Go to previous messageGo to next message
normk Mising name is currently offline normk Mising nameFriend
Messages: 2
Registered: October 2011
Junior Member
Turning off xdebug.remote_enable also worked for me, using the latest WAMP and the latest Helios download from Zend website October 2011.

[Updated on: Sat, 29 October 2011 20:38]

Report message to a moderator

Re: Breakpoints not working [message #1219323 is a reply to message #753879] Tue, 03 December 2013 10:42 Go to previous message
Nam Nguyen is currently offline Nam NguyenFriend
Messages: 1
Registered: December 2013
Junior Member
Finally I got Eclipse PDT to stop at break point after two days struggle.
Steps taken :
- Load php_xdebug version , non thread safe
- Change zend_extension in php.ini with remote_enable=true as suggested.
- Check again by phpinfo() if Xdebug is informed. Also check if the options changed correctly.
- Check version of Eclipse not Helios, and not be a version 64bits. I had to drop Helios and use the Juno instead.

- Make the web application accessible from web.
- Configure the Preferences of Debug , note of Path Mapping must set.



Previous Topic:How to get external browser to open when debugging
Next Topic:Can sby give me some help with the editor please?
Goto Forum:
  


Current Time: Fri Mar 29 06:01:40 GMT 2024

Powered by FUDForum. Page generated in 0.04670 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top