|
Re: debugging questions [message #75989 is a reply to message #75938] |
Tue, 15 July 2008 04:06 |
No real name Messages: 53 Registered: July 2009 |
Member |
|
|
I'm noticing that my debugging sessions become compromised... in
particular when the tracing has to pull up a new file, I'll get an alert
with the following message:
'Debug Source Display' has encountered a problem. Error
Details: Error
and the font in the new tab that contains the file being traced becomes
black and the trace arrow disappears. I seems that if I click the
'step' button enough times, the debugging trace makes it out of the
'black font' tab, back to a normally decorated tab where tracing appears
normal.
I see error messages in my log that look like this:
!ENTRY org.eclipse.ui 4 0 2008-07-14 23:47:08.980
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(org.eclipse.wst.sse.core.internal.util.Assert$AssertionFail edException:
release was requested on a model that was not being managed)
at org.eclipse.swt.SWT.error(SWT.java:3777)
Any ideas?
Thanks
Richard
Richard Geddes wrote:
> I'm debugging PHP with xdebug... using a PHP webpage debug configuration.
>
> - A remote webserver/php/xdebug server (on my local lan) is dishing out
> the webpages and debug info.
>
> - The client mounts the webpage directory(on the server) on the server
> with nfs, and my eclipse PHP project contains these files.
>
> When I start debugging, and stepping, sometimes does actually (single)
> step, other times it skips code and stops a few lines later.
>
> - Is there a way of controlling how many lines are skipped?
> - can I apply stepping to html as well as js?
>
> I'm relatively new to web apps and using eclipse... I welcome
> suggestions to make my life easier in this process.
>
> Thanks
> Richard
>
> Ubuntu 8.04, Eclipse 3.4.0, XDebug 2.0.x, Apache 2.x, PHP 5.x
|
|
|
Re: debugging questions [message #76054 is a reply to message #75938] |
Wed, 16 July 2008 12:51 |
D Kelsey Messages: 232 Registered: July 2009 |
Senior Member |
|
|
If you do a step and it steps over multiple lines then it could be that php has compiled those lines
out (eg forming part of a single statement) and it then breaks at the next compiled line.
As a simple example consider this script
<?php
$a=1;
$arr2 = array (1,
array (2,
array (3,
array (4,
array (5,
array (6,
array (7,
array (8)
)
)
)
)
)
)
);
$c=3;
?>
when you step through this it stops at the $a=1, $arr=, $c=3 lines and skips the ones inbetween.
This is because php has compiled lines 3-17 as a single line at line 3.
Dave Kelsey
Richard Geddes wrote:
> I'm debugging PHP with xdebug... using a PHP webpage debug configuration.
>
> - A remote webserver/php/xdebug server (on my local lan) is dishing out
> the webpages and debug info.
>
> - The client mounts the webpage directory(on the server) on the server
> with nfs, and my eclipse PHP project contains these files.
>
> When I start debugging, and stepping, sometimes does actually (single)
> step, other times it skips code and stops a few lines later.
>
> - Is there a way of controlling how many lines are skipped?
> - can I apply stepping to html as well as js?
>
> I'm relatively new to web apps and using eclipse... I welcome
> suggestions to make my life easier in this process.
>
> Thanks
> Richard
>
> Ubuntu 8.04, Eclipse 3.4.0, XDebug 2.0.x, Apache 2.x, PHP 5.x
|
|
|
Re: debugging questions [message #76102 is a reply to message #75989] |
Wed, 16 July 2008 16:14 |
No real name Messages: 53 Registered: July 2009 |
Member |
|
|
One thing I discovered with nfs is that there is the option to cache
changes on the client... I'm not sure how well integrated Eclipse is
with nfs, but I set nfs to update file changes on the server immediately
as I think the server files should be updated as soon as the changes are
made from the client.
Also, as for the error conditions popping up during the debug sessions
that lead to the undecorated unresponsive tab, I found that if I close
the tab and re-open the file from the explorer, the debug session
continues as normal on the newly opened tab...
So it looks like it the tab properties are compromised during the
stepping process such that the user can't see the xdebug action.
Richard
Geddes wrote:
> I'm noticing that my debugging sessions become compromised... in
> particular when the tracing has to pull up a new file, I'll get an alert
> with the following message:
>
> 'Debug Source Display' has encountered a problem. Error
> Details: Error
>
> and the font in the new tab that contains the file being traced becomes
> black and the trace arrow disappears. I seems that if I click the
> 'step' button enough times, the debugging trace makes it out of the
> 'black font' tab, back to a normally decorated tab where tracing appears
> normal.
>
> I see error messages in my log that look like this:
>
> !ENTRY org.eclipse.ui 4 0 2008-07-14 23:47:08.980
> !MESSAGE Unhandled event loop exception
> !STACK 0
> org.eclipse.swt.SWTException: Failed to execute runnable
> (org.eclipse.wst.sse.core.internal.util.Assert$AssertionFail edException:
> release was requested on a model that was not being managed)
> at org.eclipse.swt.SWT.error(SWT.java:3777)
>
> Any ideas?
>
> Thanks
> Richard
>
>
>>
>> Ubuntu 8.04, Eclipse 3.4.0, XDebug 2.0.x, Apache 2.x, PHP 5.x
|
|
|
Powered by
FUDForum. Page generated in 0.03127 seconds