Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Breakpoints in anything but first page do not work
Breakpoints in anything but first page do not work [message #46730] Tue, 28 August 2007 01:12 Go to next message
Eclipse UserFriend
Originally posted by: rge.comcast.net

I must be missing something. I can start the XDebug and have it break in
the first file but not any other files which are referenced and loaded?
Re: Breakpoints in anything but first page do not work [message #46945 is a reply to message #46730] Tue, 28 August 2007 10:58 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
Are breakpoints set in these other files ? or are you only using the option
of break in first line ?

Dave Kelsey

Ron wrote:
> I must be missing something. I can start the XDebug and have it break in
> the first file but not any other files which are referenced and loaded?
>
>
Re: Breakpoints in anything but first page do not work [message #47060 is a reply to message #46945] Tue, 28 August 2007 11:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rge.comcast.net

I set breakpoints in numerous files. Actually, the problem I am having is
when I try to break into a file which is loaded as a result of my clicking
on a link. If I just set breakpoints in files which are included, the
debugger stops at the breakpoints but not when the page is loaded as a
result of interacting with the browser.

Thanks for your help...

I set breakpoI did a little more testing and found that, the breakpoints
work if kthe *.php file
"Dave Kelsey" <dkel50@hotmail.com> wrote in message
news:fb0v3s$m0a$2@build.eclipse.org...
> Are breakpoints set in these other files ? or are you only using the
> option
> of break in first line ?
>
> Dave Kelsey
>
> Ron wrote:
>> I must be missing something. I can start the XDebug and have it break in
>> the first file but not any other files which are referenced and loaded?
Re: Breakpoints in anything but first page do not work [message #47149 is a reply to message #47060] Tue, 28 August 2007 11:42 Go to previous messageGo to next message
Marijn is currently offline MarijnFriend
Messages: 19
Registered: July 2009
Junior Member
This is because the debugger only runs for a single "page". So when the
page is done loading the debugger stops. If it doesn't (haven't been
able to debug myself yet due to other issues that are not PDT related)
it might this a problem with the request strings needed for XDebug not
being propagated.

In order to "activate" XDebug eclipse sends something along the lines of
?XDEBUG_SESSION=......&XDEBUG_KEY= with the url that is used to
load/debug the page. When the page is loaded the links on the pages
themselves will not contain this and this when you click on a link the
debugger is not fired up. You could copy/paste the links and append the
XDEBUG information to them and open the pages manually. Another option
is to enable the xdebug autostarter in your xdebug.ini. Not sure if this
can be set from a user environment (as is possible with at least
remote_host and remote_port). Also I'm not sure if eclipse will accept
this (as the key will be different, you can set the session name to just
"ECLIPSE" or whatever eclipse gives with it).

Regards,

Marijn.

Ron wrote:
> I set breakpoints in numerous files. Actually, the problem I am having is
> when I try to break into a file which is loaded as a result of my clicking
> on a link. If I just set breakpoints in files which are included, the
> debugger stops at the breakpoints but not when the page is loaded as a
> result of interacting with the browser.
>
> Thanks for your help...
>
> I set breakpoI did a little more testing and found that, the breakpoints
> work if kthe *.php file
> "Dave Kelsey" <dkel50@hotmail.com> wrote in message
> news:fb0v3s$m0a$2@build.eclipse.org...
>> Are breakpoints set in these other files ? or are you only using the
>> option
>> of break in first line ?
>>
>> Dave Kelsey
>>
>> Ron wrote:
>>> I must be missing something. I can start the XDebug and have it break in
>>> the first file but not any other files which are referenced and loaded?
>
>
Re: Breakpoints in anything but first page do not work [message #47210 is a reply to message #47149] Tue, 28 August 2007 11:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rge.comcast.net

Thanks for your reply, it is very helpful. Is there anyone who has figured
out how to propagate the XDEBUG_SESSION to subsequent page requests?


"Marijn van Zon" <marijn@suninet.org> wrote in message
news:fb11lu$sul$1@build.eclipse.org...
> This is because the debugger only runs for a single "page". So when the
> page is done loading the debugger stops. If it doesn't (haven't been able
> to debug myself yet due to other issues that are not PDT related) it might
> this a problem with the request strings needed for XDebug not being
> propagated.
>
> In order to "activate" XDebug eclipse sends something along the lines of
> ?XDEBUG_SESSION=......&XDEBUG_KEY= with the url that is used to load/debug
> the page. When the page is loaded the links on the pages themselves will
> not contain this and this when you click on a link the debugger is not
> fired up. You could copy/paste the links and append the XDEBUG information
> to them and open the pages manually. Another option is to enable the
> xdebug autostarter in your xdebug.ini. Not sure if this can be set from a
> user environment (as is possible with at least remote_host and
> remote_port). Also I'm not sure if eclipse will accept this (as the key
> will be different, you can set the session name to just "ECLIPSE" or
> whatever eclipse gives with it).
>
> Regards,
>
> Marijn.
>
> Ron wrote:
>> I set breakpoints in numerous files. Actually, the problem I am having
>> is when I try to break into a file which is loaded as a result of my
>> clicking on a link. If I just set breakpoints in files which are
>> included, the debugger stops at the breakpoints but not when the page is
>> loaded as a result of interacting with the browser.
>>
>> Thanks for your help...
>>
>> I set breakpoI did a little more testing and found that, the breakpoints
>> work if kthe *.php file
>> "Dave Kelsey" <dkel50@hotmail.com> wrote in message
>> news:fb0v3s$m0a$2@build.eclipse.org...
>>> Are breakpoints set in these other files ? or are you only using the
>>> option
>>> of break in first line ?
>>>
>>> Dave Kelsey
>>>
>>> Ron wrote:
>>>> I must be missing something. I can start the XDebug and have it break
>>>> in the first file but not any other files which are referenced and
>>>> loaded?
>>
Re: Breakpoints in anything but first page do not work [message #47230 is a reply to message #47210] Tue, 28 August 2007 12:19 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
Hi Ron,
you shouldn't need to. When a web page is invoked with the XDEBUG_SESSION_START
the browser will receive a cookie from xdebug. While this cookie is set pages
loaded by that web browser will be debuggable.

There are 2 situations however that are going to be a problem
1. Your browser has cookies disabled
2. the script you want to debug is being executed in a different request from
the browser request and that request did not come from a browser with the cookie
set.

Clicking on a link should work because the request comes from the browser. How are you
debugging the first script ? do you set an explicit breakpoint or are you breaking on
the first line ?

Also for the xdebug support in pdt to work, your apache htdocs (if equivalent in IIS)
must point to your eclipse workspace.

Dave Kelsey


Ron wrote:
> Thanks for your reply, it is very helpful. Is there anyone who has figured
> out how to propagate the XDEBUG_SESSION to subsequent page requests?
>
>
> "Marijn van Zon" <marijn@suninet.org> wrote in message
> news:fb11lu$sul$1@build.eclipse.org...
>> This is because the debugger only runs for a single "page". So when the
>> page is done loading the debugger stops. If it doesn't (haven't been able
>> to debug myself yet due to other issues that are not PDT related) it might
>> this a problem with the request strings needed for XDebug not being
>> propagated.
>>
>> In order to "activate" XDebug eclipse sends something along the lines of
>> ?XDEBUG_SESSION=......&XDEBUG_KEY= with the url that is used to load/debug
>> the page. When the page is loaded the links on the pages themselves will
>> not contain this and this when you click on a link the debugger is not
>> fired up. You could copy/paste the links and append the XDEBUG information
>> to them and open the pages manually. Another option is to enable the
>> xdebug autostarter in your xdebug.ini. Not sure if this can be set from a
>> user environment (as is possible with at least remote_host and
>> remote_port). Also I'm not sure if eclipse will accept this (as the key
>> will be different, you can set the session name to just "ECLIPSE" or
>> whatever eclipse gives with it).
>>
>> Regards,
>>
>> Marijn.
>>
>> Ron wrote:
>>> I set breakpoints in numerous files. Actually, the problem I am having
>>> is when I try to break into a file which is loaded as a result of my
>>> clicking on a link. If I just set breakpoints in files which are
>>> included, the debugger stops at the breakpoints but not when the page is
>>> loaded as a result of interacting with the browser.
>>>
>>> Thanks for your help...
>>>
>>> I set breakpoI did a little more testing and found that, the breakpoints
>>> work if kthe *.php file
>>> "Dave Kelsey" <dkel50@hotmail.com> wrote in message
>>> news:fb0v3s$m0a$2@build.eclipse.org...
>>>> Are breakpoints set in these other files ? or are you only using the
>>>> option
>>>> of break in first line ?
>>>>
>>>> Dave Kelsey
>>>>
>>>> Ron wrote:
>>>>> I must be missing something. I can start the XDebug and have it break
>>>>> in the first file but not any other files which are referenced and
>>>>> loaded?
>
Re: Breakpoints in anything but first page do not work [message #47769 is a reply to message #47210] Wed, 29 August 2007 12:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dserodio.gmail.com

I use Zend debugger, but had a similar problem that I solved by using
Firefox instead of the (eclipse builtin) IE.

HTH,
Daniel Serodio

Ron wrote:
> Thanks for your reply, it is very helpful. Is there anyone who has figured
> out how to propagate the XDEBUG_SESSION to subsequent page requests?
>
>
> "Marijn van Zon" <marijn@suninet.org> wrote in message
> news:fb11lu$sul$1@build.eclipse.org...
>> This is because the debugger only runs for a single "page". So when the
>> page is done loading the debugger stops. If it doesn't (haven't been able
>> to debug myself yet due to other issues that are not PDT related) it might
>> this a problem with the request strings needed for XDebug not being
>> propagated.
>>
>> In order to "activate" XDebug eclipse sends something along the lines of
>> ?XDEBUG_SESSION=......&XDEBUG_KEY= with the url that is used to load/debug
>> the page. When the page is loaded the links on the pages themselves will
>> not contain this and this when you click on a link the debugger is not
>> fired up. You could copy/paste the links and append the XDEBUG information
>> to them and open the pages manually. Another option is to enable the
>> xdebug autostarter in your xdebug.ini. Not sure if this can be set from a
>> user environment (as is possible with at least remote_host and
>> remote_port). Also I'm not sure if eclipse will accept this (as the key
>> will be different, you can set the session name to just "ECLIPSE" or
>> whatever eclipse gives with it).
>>
>> Regards,
>>
>> Marijn.
>>
>> Ron wrote:
>>> I set breakpoints in numerous files. Actually, the problem I am having
>>> is when I try to break into a file which is loaded as a result of my
>>> clicking on a link. If I just set breakpoints in files which are
>>> included, the debugger stops at the breakpoints but not when the page is
>>> loaded as a result of interacting with the browser.
>>>
>>> Thanks for your help...
>>>
>>> I set breakpoI did a little more testing and found that, the breakpoints
>>> work if kthe *.php file
>>> "Dave Kelsey" <dkel50@hotmail.com> wrote in message
>>> news:fb0v3s$m0a$2@build.eclipse.org...
>>>> Are breakpoints set in these other files ? or are you only using the
>>>> option
>>>> of break in first line ?
>>>>
>>>> Dave Kelsey
>>>>
>>>> Ron wrote:
>>>>> I must be missing something. I can start the XDebug and have it break
>>>>> in the first file but not any other files which are referenced and
>>>>> loaded?
>
Re: Breakpoints in anything but first page do not work [message #47829 is a reply to message #47769] Wed, 29 August 2007 16:38 Go to previous message
Eclipse UserFriend
Originally posted by: rge.comcast.net

Yes, I found the same thing. Thanks everyone for all of your help.....

"Daniel Serodio" <dserodio@gmail.com> wrote in message
news:fb3q79$pkp$1@build.eclipse.org...
>I use Zend debugger, but had a similar problem that I solved by using
> Firefox instead of the (eclipse builtin) IE.
>
> HTH,
> Daniel Serodio
>
> Ron wrote:
>> Thanks for your reply, it is very helpful. Is there anyone who has
>> figured
>> out how to propagate the XDEBUG_SESSION to subsequent page requests?
>>
>>
>> "Marijn van Zon" <marijn@suninet.org> wrote in message
>> news:fb11lu$sul$1@build.eclipse.org...
>>> This is because the debugger only runs for a single "page". So when the
>>> page is done loading the debugger stops. If it doesn't (haven't been
>>> able
>>> to debug myself yet due to other issues that are not PDT related) it
>>> might
>>> this a problem with the request strings needed for XDebug not being
>>> propagated.
>>>
>>> In order to "activate" XDebug eclipse sends something along the lines of
>>> ?XDEBUG_SESSION=......&XDEBUG_KEY= with the url that is used to
>>> load/debug
>>> the page. When the page is loaded the links on the pages themselves will
>>> not contain this and this when you click on a link the debugger is not
>>> fired up. You could copy/paste the links and append the XDEBUG
>>> information
>>> to them and open the pages manually. Another option is to enable the
>>> xdebug autostarter in your xdebug.ini. Not sure if this can be set from
>>> a
>>> user environment (as is possible with at least remote_host and
>>> remote_port). Also I'm not sure if eclipse will accept this (as the key
>>> will be different, you can set the session name to just "ECLIPSE" or
>>> whatever eclipse gives with it).
>>>
>>> Regards,
>>>
>>> Marijn.
>>>
>>> Ron wrote:
>>>> I set breakpoints in numerous files. Actually, the problem I am having
>>>> is when I try to break into a file which is loaded as a result of my
>>>> clicking on a link. If I just set breakpoints in files which are
>>>> included, the debugger stops at the breakpoints but not when the page
>>>> is
>>>> loaded as a result of interacting with the browser.
>>>>
>>>> Thanks for your help...
>>>>
>>>> I set breakpoI did a little more testing and found that, the
>>>> breakpoints
>>>> work if kthe *.php file
>>>> "Dave Kelsey" <dkel50@hotmail.com> wrote in message
>>>> news:fb0v3s$m0a$2@build.eclipse.org...
>>>>> Are breakpoints set in these other files ? or are you only using the
>>>>> option
>>>>> of break in first line ?
>>>>>
>>>>> Dave Kelsey
>>>>>
>>>>> Ron wrote:
>>>>>> I must be missing something. I can start the XDebug and have it
>>>>>> break
>>>>>> in the first file but not any other files which are referenced and
>>>>>> loaded?
>>
Previous Topic:Can code assist work with magic method __call ?
Next Topic:SPL Exception subclasses
Goto Forum:
  


Current Time: Wed Jan 15 11:40:15 GMT 2025

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

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

Back to the top