debugging conditional statements *explained* |
Site Admin
|
PhpED and php debugger has nothing to do with this. It's a known bug in php itself. It does not insert necessary info for the 3nd line (per your sample).
Eclipse, that you mentioned, won't do it either |
||||||||||||
_________________ The PHP IDE team |
Veteran
|
yes I know this is not a bug of phped; I thought it was a bug of dbg
Tnx for the response |
||||||||||||
|
Site Admin
|
BTW breakpoints for 3rd line on the code below will work fine
|
||||||||||||||
_________________ The PHP IDE team |
break on conditional not supported |
|
Is this to say that this will either never be supported or will magically become supported if DBG is fixed to support it? Is it a known bug with DBG (not sure who/where dbg is to submit such a report..)
thanks |
||||||||||||
|
|
I think dmitri is saying that this is a bug with PHP and not with DBG (which is written by dimitri). He can't make DBG do this because PHP itself is broken .
-r |
||||||||||||
|
|
I think I have an answere as to why the php debugger does not stop on line 3 of this code
And does stop on line 3 of this code.
If you look at the first example there is and "if ($a==1) then a $a+5; in most programing languages that is called and inline if statement. Meaning that even though the IF statement and condition are on seperate lines the interperter ( and the debugger I guess see it as one line. So it is as if you had typed:
That is why the debugger does not see line three as a seperate line. in the first example. In the second example the { tell the interpertere and the debugger that there is a multi line IF block coming up and to treat line 3 as a seperate line. |
||||||||||||||||||
|
Site Admin
|
rodericksimpson is correct. The only thing I'd add is that dbg should not let IDE to show those little blue dots on the gutter for the lines where breakpoint won't work.
|
||||||||||||
_________________ The PHP IDE team |
debugging conditional statements *explained* |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by