Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Debugging include files with XDebug
Debugging include files with XDebug [message #75276] Tue, 08 July 2008 19:25 Go to next message
Andreas Goetz is currently offline Andreas GoetzFriend
Messages: 110
Registered: July 2009
Senior Member
Sorry if the questions is off- but I can't find a solution to the
following problem.

I want to set a breakpoint in a file that is included in the main file.
Launching the main file in the debugger (XDebug) I've expected it to
break in the include file which it doesn't.

Of cause I could set the breakpoint in various locations of the main
file where the included functions are called, but this would be a little
awkward.

Is the scenario I'm describing supported=

Thanks,
Andreas
Re: Debugging include files with XDebug [message #75293 is a reply to message #75276] Tue, 08 July 2008 20:12 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
It should work, can you describe your environment ? for example which version of PDT, what the
structure of your server files is (ie where the include files are) and how the structure is within
your PDT workspace.

You can also turn on the xdebug debug trace by putting
xdebug.remote_log=(log file)
in your INI file where (log file) is the name of a file where you want to capture the log file.

It might be that you need to set up explicit path mapping for your include files when you define
your server.

It might be worth trying PDT 1.0.3 as well if you are using PDT 1.1 to see if it works there.

Dave Kelsey


Andreas Goetz wrote:
> Sorry if the questions is off- but I can't find a solution to the
> following problem.
>
> I want to set a breakpoint in a file that is included in the main file.
> Launching the main file in the debugger (XDebug) I've expected it to
> break in the include file which it doesn't.
>
> Of cause I could set the breakpoint in various locations of the main
> file where the included functions are called, but this would be a little
> awkward.
>
> Is the scenario I'm describing supported=
>
> Thanks,
> Andreas
Re: Debugging include files with XDebug [message #75310 is a reply to message #75293] Tue, 08 July 2008 21:26 Go to previous messageGo to next message
Andreas Goetz is currently offline Andreas GoetzFriend
Messages: 110
Registered: July 2009
Senior Member
Thanks for the quick answer. I realize this is not a problem of the
include file, but general. Did not see this earlier as I've had
debugging work before- but not anymore.

Running PDT 2.0 integration build on Ganymede 3.4. xdebug_remote_log is
configured but file not created. Starting debug session puts this into
my log:

!ENTRY org.eclipse.osgi 2 1 2008-07-08 21:19:01.593
!MESSAGE NLS missing message: DebugConnectionThread_oldDebuggerVersion
in: org.eclipse.php.internal.debug.core.PHPDebugCoreMessages

!ENTRY org.eclipse.osgi 2 1 2008-07-08 21:19:01.671
!MESSAGE NLS missing message: DebugServerTestEvent_success in:
org.eclipse.php.internal.debug.core.PHPDebugCoreMessages

!ENTRY org.eclipse.osgi 2 1 2008-07-08 21:19:01.671
!MESSAGE NLS missing message: DebugServerTestEvent_timeOutMessage in:
org.eclipse.php.internal.debug.core.PHPDebugCoreMessages

These do not appear to be real errors- or is PDT just failing to locate
the real error message?

Thanks,
Andi

Dave Kelsey wrote:
> It should work, can you describe your environment ? for example which
> version of PDT, what the structure of your server files is (ie where the
> include files are) and how the structure is within your PDT workspace.
>
> You can also turn on the xdebug debug trace by putting
> xdebug.remote_log=(log file)
> in your INI file where (log file) is the name of a file where you want
> to capture the log file.
>
> It might be that you need to set up explicit path mapping for your
> include files when you define your server.
>
> It might be worth trying PDT 1.0.3 as well if you are using PDT 1.1 to
> see if it works there.
>
> Dave Kelsey
>
>
> Andreas Goetz wrote:
>> Sorry if the questions is off- but I can't find a solution to the
>> following problem.
>>
>> I want to set a breakpoint in a file that is included in the main
>> file. Launching the main file in the debugger (XDebug) I've expected
>> it to break in the include file which it doesn't.
>>
>> Of cause I could set the breakpoint in various locations of the main
>> file where the included functions are called, but this would be a
>> little awkward.
>>
>> Is the scenario I'm describing supported=
>>
>> Thanks,
>> Andreas
Re: Debugging include files with XDebug [message #75327 is a reply to message #75310] Tue, 08 July 2008 21:28 Go to previous messageGo to next message
Andreas Goetz is currently offline Andreas GoetzFriend
Messages: 110
Registered: July 2009
Senior Member
Ok, think I've found it. There is a very weird bug with the current
debugging preferences. Neither workspace not project settings are
actually persisted.
Only the run configuration settings actually stay "turned on". Due to
this I was using Zend instead of my installed XDebug.

Should I file a bug for this?
Re: Debugging include files with XDebug [message #75344 is a reply to message #75327] Tue, 08 July 2008 22:02 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
Yes, file it as a bug against PDT 2.0 (or the closest number you can find on bugzilla I suppose).

This seems to have persisted from an old version of PDT 1.0 where this problem also occurred.

Cheers
Dave Kelsey

Andreas Goetz wrote:
> Ok, think I've found it. There is a very weird bug with the current
> debugging preferences. Neither workspace not project settings are
> actually persisted.
> Only the run configuration settings actually stay "turned on". Due to
> this I was using Zend instead of my installed XDebug.
>
> Should I file a bug for this?
>
Re: Debugging include files with XDebug [message #75511 is a reply to message #75344] Wed, 09 July 2008 21:56 Go to previous message
Andreas Goetz is currently offline Andreas GoetzFriend
Messages: 110
Registered: July 2009
Senior Member
Opened this:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=240140

Did some source debugging and believe I've found two issues. Do not
understand the code well enough for a patch though- so smbd needs to
look into the bug to either give me support or take over.

Dave Kelsey wrote:
> Yes, file it as a bug against PDT 2.0 (or the closest number you can
> find on bugzilla I suppose).
>
> This seems to have persisted from an old version of PDT 1.0 where this
> problem also occurred.
>
> Cheers
> Dave Kelsey
>
> Andreas Goetz wrote:
>> Ok, think I've found it. There is a very weird bug with the current
>> debugging preferences. Neither workspace not project settings are
>> actually persisted.
>> Only the run configuration settings actually stay "turned on". Due to
>> this I was using Zend instead of my installed XDebug.
>>
>> Should I file a bug for this?
>>
Previous Topic:Tutorial for setting up PDT + XDebug
Next Topic:PDT 2.0 - Code Assist
Goto Forum:
  


Current Time: Thu Apr 25 13:36:40 GMT 2024

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

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

Back to the top