Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » XDebug breakpoints and Control Structures
XDebug breakpoints and Control Structures [message #58539] Tue, 16 October 2007 00:06 Go to next message
Derek Basch is currently offline Derek BaschFriend
Messages: 2
Registered: July 2009
Junior Member
This may be a silly question. Should XDebug break at breakpoints set on a
line with an 'elseif' Control Structure?

Such as:

<?php
if ($a > $b) {
echo "a is bigger than b";
(**break**) } elseif ($a == $b) {
echo "a is equal to b";
(**break**) } else {
echo "a is smaller than b";
}
?>

XDebug will stop on the 'if' but skips the 'elseif' and 'else' lines? Is
there some sort of Control Structure depth setting for XDebug?

Thanks,
Derek Basch
Re: XDebug breakpoints and Control Structures [message #58560 is a reply to message #58539] Tue, 16 October 2007 06:41 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
no, xdebug doesn't stop on elseif and elses. Not sure why this is, but it could be due to the way
that php compiles conditional statements and interprets them.

Dave Kelsey

Derek Basch wrote:
> This may be a silly question. Should XDebug break at breakpoints set on
> a line with an 'elseif' Control Structure?
> Such as:
>
> <?php
> if ($a > $b) {
> echo "a is bigger than b";
> (**break**) } elseif ($a == $b) {
> echo "a is equal to b";
> (**break**) } else {
> echo "a is smaller than b";
> }
> ?>
> XDebug will stop on the 'if' but skips the 'elseif' and 'else' lines? Is
> there some sort of Control Structure depth setting for XDebug?
>
> Thanks,
> Derek Basch
>
Re: XDebug breakpoints and Control Structures [message #58680 is a reply to message #58560] Tue, 16 October 2007 15:17 Go to previous messageGo to next message
Derek Basch is currently offline Derek BaschFriend
Messages: 2
Registered: July 2009
Junior Member
Thanks for the answer Dave.

Cheers,
Derek Basch
Re: XDebug breakpoints and Control Structures [message #58705 is a reply to message #58680] Tue, 16 October 2007 15:48 Go to previous message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
It might be worth going over the http://www.xdebug.org and posting a message on the
mailing list. Derick may be able to give a definitive answer about why the behaviour
is like it is.

Cheers
Dave Kelsey

Derek Basch wrote:
> Thanks for the answer Dave.
>
> Cheers,
> Derek Basch
>
Previous Topic:XDebug remote, breaking on exceptions
Next Topic:Smarty & Questions
Goto Forum:
  


Current Time: Wed Feb 08 08:41:47 GMT 2023

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

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

Back to the top