Breakpoints not breaking [message #551041] |
Wed, 04 August 2010 23:21 |
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 07:07 |
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 09:22 |
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.
-- hugh
|
|
|
|
|
Re: Breakpoints not breaking [message #551733 is a reply to message #551544] |
Mon, 09 August 2010 11:34 |
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
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.01668 seconds