This is due to bug 1013219 
<https://bugzilla.mozilla.org/show_bug.cgi?id=1013219>. The debugger 
currently jumps to the last executable line instead of the closing curly 
brace (or the <script> tag as in Chrome).

Sebastian

On Tuesday, February 10, 2015 at 2:56:44 PM UTC+1, [email protected] wrote:
>
> Look at this very little piece of html page with script embedded inside:
>
> <!DOCTYPE html><html>    <head>        <title>TODO supply a title</title>     
>    <meta charset="UTF-8">        <meta name="viewport" 
> content="width=device-width, initial-scale=1.0">    </head>    <body>        
> <div>TODO write content</div>    </body>    <script>        var j = false;    
>     var t = true;        if (j && t) {            window.alert('false');      
>   }    </script></html>
>
>
> Obviously the body of the "if" is not executed, so no alert is shown.
> However, if I put a breakpoint at the "if" line and then I use "step", the 
> conditional seems satisfied because the arrow appears at the left of 
> "window.alert" line (but continuing, no alert is shown, as expected).
> Moreover, if I set a breakpoint in "window.alert" line, the breakpoint is 
> fired!
> Look at the attached picture.
> Is it normal?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/firebug.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/firebug/92c8869b-1748-4d66-8dd3-6228033a0bfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to