Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » XDebug and Breakpoints
XDebug and Breakpoints [message #55701] Thu, 27 September 2007 15:15 Go to next message
Eclipse UserFriend
Originally posted by: josefv.tridan.co.za

I am using the new PDT with XDebug as my debugger. When I set a breakpoint
in say whatever.php, the breakpoint halts and I can easily traverse across
the functions.

Lets say I resume the code, and via normal action the page whatever.php is
reloaded (within the same debug session), sometimes the breakpoint halts
execution again and I can traverse the code step by step. Which is good.

By sometimes, unexpectedly, I am presented with a white breakpoint arrow,
not blue, and the step into and step over buttons, as well as resume
buttons are disabled.

Sometimes the breakpoint halts output to the browser, my Eclipse taskbar
button starts flashing (which is for me a queue that XDebug has picked up
the breakpoint), but I can't even see neither a blue nor a white
breakpoint arrow. Buttons for traversing code is also disabled.

Am I doing something wrong?
Re: XDebug and Breakpoints [message #55783 is a reply to message #55701] Thu, 27 September 2007 19:42 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
Hi Josef,

Would it be possible to give me a script that replicates the problem ? If not
a start would be to get an xdebug log of the problem.

if you could add the entry
xdebug.remote_log=(path to file)

(more info can be found at http://www.xdebug.org)

and recreate the problem and either post the log or raise a bugzilla report
and post it there ?

Cheers
Dave Kelsey

> I am using the new PDT with XDebug as my debugger. When I set a
> breakpoint in say whatever.php, the breakpoint halts and I can easily
> traverse across the functions.
>
> Lets say I resume the code, and via normal action the page whatever.php
> is reloaded (within the same debug session), sometimes the breakpoint
> halts execution again and I can traverse the code step by step. Which is
> good.
>
> By sometimes, unexpectedly, I am presented with a white breakpoint
> arrow, not blue, and the step into and step over buttons, as well as
> resume buttons are disabled.
>
> Sometimes the breakpoint halts output to the browser, my Eclipse taskbar
> button starts flashing (which is for me a queue that XDebug has picked
> up the breakpoint), but I can't even see neither a blue nor a white
> breakpoint arrow. Buttons for traversing code is also disabled.
>
> Am I doing something wrong?
>
Re: XDebug and Breakpoints [message #56221 is a reply to message #55783] Mon, 01 October 2007 12:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: josef.tridan.co.za

I've managed to find the problem. There was a bug in my code, but I had no
clue as Eclipse isn't spitting any output debugging information into my
Console, Debug Output and even Browser Output.

Is there a setting I'm missing? I have set "display_errors = On" in my
php.ini file, but errors are going straight to Firefox instead.

Thanks for the reply. Is there an explanation for the difference between
the white and blue breakpoint arrows?

Why is it sometimes white?
Re: XDebug and Breakpoints [message #56237 is a reply to message #56221] Mon, 01 October 2007 12:54 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
I really need the xdebug log generated when you had your problem to be able
to try to find out what is going on.

if you are running a web script, then currently all output from that script
will go to the web browser, it isn't captured and redirected into any of
the eclipse views.

Dave Kelsey

Josef van Niekerk wrote:
> I've managed to find the problem. There was a bug in my code, but I had
> no clue as Eclipse isn't spitting any output debugging information into
> my Console, Debug Output and even Browser Output.
>
> Is there a setting I'm missing? I have set "display_errors = On" in my
> php.ini file, but errors are going straight to Firefox instead.
>
> Thanks for the reply. Is there an explanation for the difference between
> the white and blue breakpoint arrows?
>
> Why is it sometimes white?
>
Re: XDebug and Breakpoints [message #56401 is a reply to message #56237] Tue, 02 October 2007 08:49 Go to previous messageGo to next message
Josef van Niekerk is currently offline Josef van NiekerkFriend
Messages: 4
Registered: July 2009
Junior Member
My problem appears to have been a faulty/partial installation of XDebug. I
redid my php.ini settings, as I have a brand new machine now. The new
installation appears to be stable and operational. I'll let know if any
problems occur again.

Just a quick question, is there a way I can direct PHP errors and
warnings/notices to the console/debug output even while using Firefox?
Re: XDebug and Breakpoints [message #56451 is a reply to message #56401] Tue, 02 October 2007 09:33 Go to previous message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
Sorry, there isn't in this release. I am going to look at adding this in
a future release.

Dave Kelsey

Josef van Niekerk wrote:
> My problem appears to have been a faulty/partial installation of XDebug.
> I redid my php.ini settings, as I have a brand new machine now. The new
> installation appears to be stable and operational. I'll let know if any
> problems occur again.
>
> Just a quick question, is there a way I can direct PHP errors and
> warnings/notices to the console/debug output even while using Firefox?
>
Previous Topic:type hinting for arrays
Next Topic:Identical files when debugging with xdebug in PDT 1.0
Goto Forum:
  


Current Time: Thu Apr 25 11:39:00 GMT 2024

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

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

Back to the top