Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Debug Source Display Error (xdebug)
Debug Source Display Error (xdebug) [message #45138] Wed, 22 August 2007 18:37 Go to next message
Eclipse UserFriend
Originally posted by: schnauss.digitalzone.de

I've got installed PDT1.0(latest Release) and xdebug2.0 properly. I set
up Debug-Configuration according to the tutorial, i found here:
http://inkompetent.se/wiki/php/remote_debugging_with_pdt_and _xdebug

I try to debug (remote) on my local machine.

Windows XP SP2 (up to date)
Apache 2.0
PHP 4.4.2-pl1

The Remote Debugger starts normally and stops at the first Breakpoint.
If I press the "Step Into" - Button, i always get an
(Eclipse)Error-Popup Message:

-------------------------------------
Problem occured:

Debug Source Display (Time of Error: 22.August 2007 20:22:14 MESZ)
Reason:
Check the Details
-------------------------------------

If click on "Details >>" Button, i just get the advice "error". The
Debugger does not stop, but the visualisation of the files is crashing a
bit:

1. syntax-highlighting does mix up colors
2. the bar, displaying the current line disappears

Maybe its just a simple configuration problem.?

Excuse my bad English. I'm thankful for every useful hint.
Re: Debug Source Display Error (xdebug) [message #45173 is a reply to message #45138] Wed, 22 August 2007 19:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: csurface.gmail.com

I'm seeing this as well. See my report in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=197678 My basic understanding
of the problem is that the PHPValidator isn't handling files that exist
outside the PHP model.

Note that the original bug reported there is not exactly the same. However,
the exception generated in this debugging case is very similar to what
happens when you open one of these "external" files manually.

hth,
Charlie

"Mario" <schnauss@digitalzone.de> wrote in message
news:fahvo8$rv0$1@build.eclipse.org...
> I've got installed PDT1.0(latest Release) and xdebug2.0 properly. I set up
> Debug-Configuration according to the tutorial, i found here:
> http://inkompetent.se/wiki/php/remote_debugging_with_pdt_and _xdebug
>
> I try to debug (remote) on my local machine.
>
> Windows XP SP2 (up to date)
> Apache 2.0
> PHP 4.4.2-pl1
>
> The Remote Debugger starts normally and stops at the first Breakpoint. If
> I press the "Step Into" - Button, i always get an (Eclipse)Error-Popup
> Message:
>
> -------------------------------------
> Problem occured:
>
> Debug Source Display (Time of Error: 22.August 2007 20:22:14 MESZ)
> Reason:
> Check the Details
> -------------------------------------
>
> If click on "Details >>" Button, i just get the advice "error". The
> Debugger does not stop, but the visualisation of the files is crashing a
> bit:
>
> 1. syntax-highlighting does mix up colors
> 2. the bar, displaying the current line disappears
>
> Maybe its just a simple configuration problem.?
>
> Excuse my bad English. I'm thankful for every useful hint.
>
>
>
Re: Debug Source Display Error (xdebug) [message #45203 is a reply to message #45138] Wed, 22 August 2007 21:00 Go to previous messageGo to next message
Fabio Z is currently offline Fabio ZFriend
Messages: 46
Registered: July 2009
Member
"Mario" <schnauss@digitalzone.de> ha scritto nel messaggio
news:fahvo8$rv0$1@build.eclipse.org...


> I try to debug (remote) on my local machine.
>
> Windows XP SP2 (up to date)
> Apache 2.0
> PHP 4.4.2-pl1
>
> The Remote Debugger starts normally and stops at the first Breakpoint. If
> I press the "Step Into" - Button, i always get an (Eclipse)Error-Popup
> Message:

I get the same error.

Windows XP SP2 (up to date)
IIS 5
PHP 5.2

With the F5 that goes debug into a different file I get often the undefined
error Debug Source Display (Time of Error: 22.August 2007 20:22:14 MESZ).

The debug can be continued with F5/F6 or F8 but the active line is unknown
and source colors of the "require()"d file are mixed.

The problem is that I cannot say how to reproduce it :(
Re: Debug Source Display Error (xdebug) [message #45353 is a reply to message #45138] Thu, 23 August 2007 06:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mep_eisen.web.de

Have a look at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=200627
and
https://bugs.eclipse.org/bugs/show_bug.cgi?id=200637

Our problems should be fixed in cvs :-)
Re: Debug Source Display Error (xdebug) [message #45627 is a reply to message #45353] Thu, 23 August 2007 12:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: csurface.gmail.com

No they aren't. I caught up to CVS yesterday and still experienced the
problem. Those bugs were fixed the day before :)

"Martin Eisengardt" <mep_eisen@web.de> wrote in message
news:650ddd195021cd333b34e23ed5e21324$1@www.eclipse.org...
> Have a look at
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=200627
> and
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=200637
>
> Our problems should be fixed in cvs :-)
>
Re: Debug Source Display Error (xdebug) [message #45716 is a reply to message #45627] Thu, 23 August 2007 13:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mep_eisen.web.de

I got the same problem with "step into". Every time PDT tries to open
another source within current editor, this exception will be thrown and
syntax coloring is corrupted. If You are opening all sources manually
before stepping into, it should work.
For me the latest cvs works and stepping into works too. Are You sure that
Your eclipse uses the correct plugins You compiled all by yourself?
Re: Debug Source Display Error (xdebug) [message #45836 is a reply to message #45716] Thu, 23 August 2007 14:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: csurface.gmail.com

I have the all-in-one build I20070712 with the all the PDT plugins
downloaded from CVS. I compared the dependency lists of I20070712 and
I20070816, and they appear to be the same. Maybe they aren't the same, and
the lists are incorrect?

I should also point out (like I mentioned in my original response to this
thread) that my problem seems to be with files that are external to the PHP
model. Either they live in a non-PHP project or are included from the
filesystem (and appear in the Include Path). Do those cases work for you?
I'd be surprised if they do, because opening these files manually throws an
exception for me, independent of any debugging.

thanks,
Charlie


"Martin Eisengardt" <mep_eisen@web.de> wrote in message
news:0391434eb8141be0c499e30cd3b5426e$1@www.eclipse.org...
>I got the same problem with "step into". Every time PDT tries to open
>another source within current editor, this exception will be thrown and
>syntax coloring is corrupted. If You are opening all sources manually
>before stepping into, it should work.
> For me the latest cvs works and stepping into works too. Are You sure that
> Your eclipse uses the correct plugins You compiled all by yourself?
>
Re: Debug Source Display Error (xdebug) [message #48157 is a reply to message #45836] Thu, 30 August 2007 13:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: csurface.gmail.com

I just downloaded the M3 all in one, and I'm still seeing this problem.
It's very easy to reproduce. The steps are below. Can someone else
confirm?

1) Setup a PHP Executable using XDebug. I'm using a recent PHP 5 build on
windows.

2) Create a project Test, and add a file to it called test.php.

<?php
include "c:/php/includes/bar.php";
bar();
?>

3) Create a file bar.php in a location outside your workspace. I used
C:\php\includes.

<?php
function bar() {
echo "Hello from bar!\n";
}
?>
4) Add this directory to the Include Path of your PHP project. Also make
sure the include line in test.php is correct for your system.

5) Put a breakpoint on the include line in test.php. Then close all open
editors. Debug as PHP Script.

6) The breakpoint is hit correctly. Step to the bar() call and then step
in. An error dialog appears.

thanks,

Charlie

"Charlie Surface" <csurface@gmail.com> wrote in message
news:fak72v$8av$1@build.eclipse.org...
>I have the all-in-one build I20070712 with the all the PDT plugins
>downloaded from CVS. I compared the dependency lists of I20070712 and
>I20070816, and they appear to be the same. Maybe they aren't the same, and
>the lists are incorrect?
>
> I should also point out (like I mentioned in my original response to this
> thread) that my problem seems to be with files that are external to the
> PHP model. Either they live in a non-PHP project or are included from the
> filesystem (and appear in the Include Path). Do those cases work for you?
> I'd be surprised if they do, because opening these files manually throws
> an exception for me, independent of any debugging.
>
> thanks,
> Charlie
>
>
> "Martin Eisengardt" <mep_eisen@web.de> wrote in message
> news:0391434eb8141be0c499e30cd3b5426e$1@www.eclipse.org...
>>I got the same problem with "step into". Every time PDT tries to open
>>another source within current editor, this exception will be thrown and
>>syntax coloring is corrupted. If You are opening all sources manually
>>before stepping into, it should work.
>> For me the latest cvs works and stepping into works too. Are You sure
>> that Your eclipse uses the correct plugins You compiled all by yourself?
>>
>
>
Re: Debug Source Display Error (xdebug) [message #48187 is a reply to message #48157] Thu, 30 August 2007 13:46 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
This also happens when using the Zend Debugger, so it isn't specific to
xdebug.

Dave Kelsey


Charlie Surface wrote:
> I just downloaded the M3 all in one, and I'm still seeing this problem.
> It's very easy to reproduce. The steps are below. Can someone else
> confirm?
>
> 1) Setup a PHP Executable using XDebug. I'm using a recent PHP 5 build on
> windows.
>
> 2) Create a project Test, and add a file to it called test.php.
>
> <?php
> include "c:/php/includes/bar.php";
> bar();
> ?>
>
> 3) Create a file bar.php in a location outside your workspace. I used
> C:\php\includes.
>
> <?php
> function bar() {
> echo "Hello from bar!\n";
> }
> ?>
> 4) Add this directory to the Include Path of your PHP project. Also make
> sure the include line in test.php is correct for your system.
>
> 5) Put a breakpoint on the include line in test.php. Then close all open
> editors. Debug as PHP Script.
>
> 6) The breakpoint is hit correctly. Step to the bar() call and then step
> in. An error dialog appears.
>
> thanks,
>
> Charlie
>
> "Charlie Surface" <csurface@gmail.com> wrote in message
> news:fak72v$8av$1@build.eclipse.org...
>> I have the all-in-one build I20070712 with the all the PDT plugins
>> downloaded from CVS. I compared the dependency lists of I20070712 and
>> I20070816, and they appear to be the same. Maybe they aren't the same, and
>> the lists are incorrect?
>>
>> I should also point out (like I mentioned in my original response to this
>> thread) that my problem seems to be with files that are external to the
>> PHP model. Either they live in a non-PHP project or are included from the
>> filesystem (and appear in the Include Path). Do those cases work for you?
>> I'd be surprised if they do, because opening these files manually throws
>> an exception for me, independent of any debugging.
>>
>> thanks,
>> Charlie
>>
>>
>> "Martin Eisengardt" <mep_eisen@web.de> wrote in message
>> news:0391434eb8141be0c499e30cd3b5426e$1@www.eclipse.org...
>>> I got the same problem with "step into". Every time PDT tries to open
>>> another source within current editor, this exception will be thrown and
>>> syntax coloring is corrupted. If You are opening all sources manually
>>> before stepping into, it should work.
>>> For me the latest cvs works and stepping into works too. Are You sure
>>> that Your eclipse uses the correct plugins You compiled all by yourself?
>>>
>>
>
>
Re: Debug Source Display Error (xdebug) [message #48592 is a reply to message #48187] Fri, 31 August 2007 13:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: schnauss.digitalzone.de

> This also happens when using the Zend Debugger, so it isn't specific to
> xdebug.
>
> Dave Kelsey

As i switched back to Zend Debugger, i got the same display errors ...
so i agree ... it is not a xdebug problem.

>
>
> Charlie Surface wrote:
>> I just downloaded the M3 all in one, and I'm still seeing this
>> problem. It's very easy to reproduce. The steps are below. Can
>> someone else confirm?
>>
>> 1) Setup a PHP Executable using XDebug. I'm using a recent PHP 5
>> build on windows.
>>
>> 2) Create a project Test, and add a file to it called test.php.
>>
>> <?php
>> include "c:/php/includes/bar.php";
>> bar();
>> ?>
>>
>> 3) Create a file bar.php in a location outside your workspace. I used
>> C:\php\includes.
>>
>> <?php
>> function bar() {
>> echo "Hello from bar!\n";
>> }
>> ?>
>> 4) Add this directory to the Include Path of your PHP project. Also
>> make sure the include line in test.php is correct for your system.
>>
>> 5) Put a breakpoint on the include line in test.php. Then close all
>> open editors. Debug as PHP Script.
>>
>> 6) The breakpoint is hit correctly. Step to the bar() call and then
>> step in. An error dialog appears.
>>
>> thanks,
>>
>> Charlie
>>
>> "Charlie Surface" <csurface@gmail.com> wrote in message
>> news:fak72v$8av$1@build.eclipse.org...
>>> I have the all-in-one build I20070712 with the all the PDT plugins
>>> downloaded from CVS. I compared the dependency lists of I20070712
>>> and I20070816, and they appear to be the same. Maybe they aren't the
>>> same, and the lists are incorrect?
>>>
>>> I should also point out (like I mentioned in my original response to
>>> this thread) that my problem seems to be with files that are external
>>> to the PHP model. Either they live in a non-PHP project or are
>>> included from the filesystem (and appear in the Include Path). Do
>>> those cases work for you? I'd be surprised if they do, because
>>> opening these files manually throws an exception for me, independent
>>> of any debugging.
>>>
>>> thanks,
>>> Charlie
>>>
>>>
>>> "Martin Eisengardt" <mep_eisen@web.de> wrote in message
>>> news:0391434eb8141be0c499e30cd3b5426e$1@www.eclipse.org...
>>>> I got the same problem with "step into". Every time PDT tries to
>>>> open another source within current editor, this exception will be
>>>> thrown and syntax coloring is corrupted. If You are opening all
>>>> sources manually before stepping into, it should work.
>>>> For me the latest cvs works and stepping into works too. Are You
>>>> sure that Your eclipse uses the correct plugins You compiled all by
>>>> yourself?
>>>>
>>>
>>
>>
Re: Debug Source Display Error (xdebug) [message #553062 is a reply to message #45138] Mon, 16 August 2010 09:56 Go to previous message
Vandana  is currently offline Vandana Friend
Messages: 1
Registered: August 2010
Junior Member
I faced same problem in Java application.
Please check, In Window->Preferences->Java->Debug->Step Filtering

Check whether "Use Step Filters" check-box is unchecked.
If it is unchecked, then check it.

My problem was resolved by checking the "Use Step Filters" Check-box

Thanks,
Vandana Pal

[Updated on: Mon, 16 August 2010 09:56]

Report message to a moderator

Previous Topic:Connect workspace with www/ of wamp server
Next Topic:code completion somehow not available
Goto Forum:
  


Current Time: Thu Apr 18 12:13:05 GMT 2024

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

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

Back to the top