Ok, I've posted http://code.google.com/p/fbug/issues/detail?id=2829.

While making a test case I see another related problem. The first
step? in a for loop is undefined. I've posted this issue:
http://code.google.com/p/fbug/issues/detail?id=2828



On 11 feb, 16:57, John J Barton <[email protected]> wrote:
> On Feb 11, 1:45 am, woomla <[email protected]> wrote:
>
> > Hi,
>
> > Although the debugger does a great job I have a feature request.
>
> > Currently the debugger steps on the last line, with actual code, of a
> > block even if that line is not executed. This makes debugging in the
> > example below a bit harder to follow. In the example, the debugger
> > always steps on line 5, even if line 3 is false. The only difference
> > is that in that case line 5 is not executed, but you cannot tell by
> > the debugger.
>
> > Is it possible that the debugger skip line 5 if line 3 is false and
> > goes to line 6 (or 7 or 1 in this case)?
>
> While I appreciate your generous comments, I think this is just a bug.
> However its not one that is simple to fix, we need to have new values
> in the program counter map from Firefox.
>
> Firebug supports single stepping by interrupting execution after every
> step of the program counter (PC). Then it asks Firefox what line of
> source the PC value maps to. If the line has not changed, it steps
> again. When the line changes, it breaks into the UI for the user.
>
> So if the PC -> line number map is incorrect, the break will be
> incorrect. Firebug does not know anything about the structure of the
> program.
>
> If you post a small complete test case to our issues list I will
> report it to bugzilla.mozilla.org.
>
> jjb
>
>
>
> > 1: for (key in obj)
> > 2: {
> > 3:     if (obj.hasOwnProperty(key))
> > 4:     {
> > 5:         result += key + ',';
> > 6:     }
> > 7: }

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to