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/1f864021-5208-4805-b594-400cc4f3858d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to