Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Breakpoints not breaking
Breakpoints not breaking [message #551041] Wed, 04 August 2010 19:21 Go to next message
Hugh Messenger is currently offline Hugh Messenger
Messages: 17
Registered: January 2010
Junior Member
I'm running PDT 2.2.0 on Helios.

I've been happily xdebugging for a couple of weeks since upgrading to Helios. Yesterday, for no apparent reason, breakpoints started misbehaving. They will work for a while after firing up Eclipse, but then simply stop breaking.

I can see the debugger running, i.e. the Debug view shows the sessions hitting Eclipse, and 'netstat' shows the connections, but breakpoints just quit breaking.

I also noticed that if I engage the "Show Breakpoints Supported by Selected Target" button in the Breakpoint view, all my PHP breakpoints disappear from the list.

I've also just noticed that when I fire up the Debug As (PHP Web Page), sometimes it sticks at 57%, which seems to be something other folk have noticed, and indicates Eclipse is waiting for the debug session.

Nothing else is running on port 9000. I took my dbgpproxy out of the loop and am now connecting directly from the server to Eclipse. I've tried removing all breakpoints, quitting and restarting Eclipse.

The workspace is new, I recreated everything from scratch when I upgraded from Galileo (due to the workspace upgrade crashing). So I don't think this is a problem others have seen with breakpoint file location issues between Galileo and Helios.

The only thing I did which could possibly have had an effect was, I added another project to my workspace, and enabled JS debugging on it. This is the first time I've enabled JS debugging in Eclipse. I've since removed that project, but it doesn't seem to have helped.

This is driving me crazy ... having to restart Eclipse every 10 or 15 minutes is eating up half my time ... any suggestions gratefully received!

-- hugh

Re: Breakpoints not breaking [message #551078 is a reply to message #551041] Thu, 05 August 2010 03:07 Go to previous messageGo to next message
Eclipse User
Originally posted by: dkel50.hotremovemail.com

Can you get an xdebug log when the breakpoints fail ? It might show what
the problem is for that. Not sure yet about a debug session not
connecting, did you still get the problem once you took the proxy out of
the equation ?

Dave


On 05/08/2010 00:21, Hugh Messenger wrote:
> I'm running PDT 2.2.0 on Helios.
>
> I've been happily xdebugging for a couple of weeks since upgrading to
> Helios. Yesterday, for no apparent reason, breakpoints started
> misbehaving. They will work for a while after firing up Eclipse, but
> then simply stop breaking.
>
> I can see the debugger running, i.e. the Debug view shows the sessions
> hitting Eclipse, and 'netstat' shows the connections, but breakpoints
> just quit breaking.
>
> I also noticed that if I engage the "Show Breakpoints Supported by
> Selected Target" button in the Breakpoint view, all my PHP breakpoints
> disappear from the list.
>
> I've also just noticed that when I fire up the Debug As (PHP Web Page),
> sometimes it sticks at 57%, which seems to be something other folk have
> noticed, and indicates Eclipse is waiting for the debug session.
>
> Nothing else is running on port 9000. I took my dbgpproxy out of the
> loop and am now connecting directly from the server to Eclipse. I've
> tried removing all breakpoints, quitting and restarting Eclipse.
>
> The workspace is new, I recreated everything from scratch when I
> upgraded from Galileo (due to the workspace upgrade crashing). So I
> don't think this is a problem others have seen with breakpoint file
> location issues between Galileo and Helios.
>
> The only thing I did which could possibly have had an effect was, I
> added another project to my workspace, and enabled JS debugging on it.
> This is the first time I've enabled JS debugging in Eclipse. I've since
> removed that project, but it doesn't seem to have helped.
>
> This is driving me crazy ... having to restart Eclipse every 10 or 15
> minutes is eating up half my time ... any suggestions gratefully received!
>
> -- hugh
>
>
Re: Breakpoints not breaking [message #551106 is a reply to message #551078] Thu, 05 August 2010 05:22 Go to previous messageGo to next message
Hugh Messenger is currently offline Hugh Messenger
Messages: 17
Registered: January 2010
Junior Member
Eclipse User wrote on Thu, 05 August 2010 03:07
Originally posted by: dkel50.hotremovemail.com

Can you get an xdebug log when the breakpoints fail ? It might show what
the problem is for that. Not sure yet about a debug session not
connecting, did you still get the problem once you took the proxy out of
the equation ?



Well, right now this is being a classic Heisenbug. Pretty much as soon as I posted, my BP's started working again.

But to answer your question, no, taking the dbgpproxy out of the equation had no effect. I've since re-instated it, as I need it 'cos I also use Komodo IDE on another machine for some other PHP project work.

The only change I made which may have had some effect was ... I noticed some port 9000 connections to an IP in China:

TCP 192.168.1.201:9000 222.186.13.212:8108 ESTABLISHED
TCP 192.168.1.201:9000 222.186.13.212:30311 ESTABLISHED
TCP 192.168.1.201:9000 222.186.13.212:34798 ESTABLISHED
TCP 192.168.1.201:9000 222.186.13.212:39317 ESTABLISHED
TCP 192.168.1.201:9000 222.186.13.212:48936 ESTABLISHED

... so I tightened up the port forwarding on my router, and changed "Accept Remote Session (JIT)" from "Any" to "prompt". It seemed to be shortly after I did this that my problem with BP's went away.

If this problem happens again, I'll post the xdebug.log.

Quote:

Dave



-- hugh
Re: Breakpoints not breaking [message #551544 is a reply to message #551106] Fri, 06 August 2010 18:30 Go to previous messageGo to next message
Hugh Messenger is currently offline Hugh Messenger
Messages: 17
Registered: January 2010
Junior Member
OK, when the debug session start hangs at 57% done, the error log is:

!ENTRY org.eclipse.php.debug.core 4 4 2010-08-06 17:16:00.149
!MESSAGE class org.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGp Session : Unexpected null from readResponse waiting for Init

-- hugh
Re: Breakpoints not breaking [message #551602 is a reply to message #551544] Sat, 07 August 2010 18:12 Go to previous messageGo to next message
Hugh Messenger is currently offline Hugh Messenger
Messages: 17
Registered: January 2010
Junior Member
Just FYI, I'm running xdebug 2.0.5 with PHP 5.2.9 and Apache 2.2.3 on Centos 5.3, and my Helios is on a 64 bit Windows 7 box.

-- hugh
Re: Breakpoints not breaking [message #551733 is a reply to message #551544] Mon, 09 August 2010 07:34 Go to previous messageGo to next message
Eclipse User
Originally posted by: dkel50.hotremovemail.com

This could be one of 2 things. Either the socket is terminated in some
unexpected manner or whatever is sent to PDT after a socket has been
established is not seen as a valid Init debug handshake.

Only real way to determine what is going on is to use something like
wireshark to capture the packets of information being sent.

Dave



On 06/08/2010 23:30, Hugh Messenger wrote:
> OK, when the debug session start hangs at 57% done, the error log is:
>
> !ENTRY org.eclipse.php.debug.core 4 4 2010-08-06 17:16:00.149
> !MESSAGE class
> org.eclipse.php.internal.debug.core.xdebug.dbgp.session.DBGp Session :
> Unexpected null from readResponse waiting for Init
>
> -- hugh
>
Re: Breakpoints not breaking [message #551864 is a reply to message #551733] Mon, 09 August 2010 16:22 Go to previous message
Hugh Messenger is currently offline Hugh Messenger
Messages: 17
Registered: January 2010
Junior Member
My debugging seems to have settled down again. It's bizarre ... I've been running Helios for about a month now, and xdebug has worked perfectly for all but a couple or three days, where it suddenly started exhibiting major strangeness.

If this problem starts again, I'll take a look at the wire (probably using tcpdump on the server side) and let you know what is actually being sent from the server.

-- hugh
Previous Topic:Editor syntax element coloring are missing
Next Topic:The icon that signs a syntax error is not showed
Goto Forum:
  


Current Time: Sat Jul 26 09:20:15 EDT 2014

Powered by FUDForum. Page generated in 0.01964 seconds