Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » XDebug breakpoints and Control Structures
XDebug breakpoints and Control Structures [message #58539] Mon, 15 October 2007 20:06 Go to next message
Eclipse UserFriend
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 02:41 Go to previous messageGo to next message
Eclipse UserFriend
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 11:17 Go to previous messageGo to next message
Eclipse UserFriend
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 11:48 Go to previous message
Eclipse UserFriend
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: Sat May 24 09:52:21 EDT 2025

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

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

Back to the top