The green lines are executable lines, that is lines with JavaScript that can be reached by the debugger when you set a breakpoint.
The green lines are executable lines, that is lines with JavaScript that can be reached by the debugger when you set a breakpoint.That seems almost tautological. What is it that makes one line of JavaScript "executable" in the sense you mean, and another line not? My code lines that Firebug refuses to break at (whether or not it shows green line numbers) are executing in the page, because I can see that the page is working correctly, and it couldn't if those code lines didn't execute.
--
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 firebug+u...@googlegroups.com.
To post to this group, send email to fir...@googlegroups.com.
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/4e54563e-7aac-4aaa-99f6-cf258d7f279f%40googlegroups.com.
Sebastian, you haven't addressed my core question, which doesn't require looking at any code: in general, what makes a line of code "breakable" (in any debugger, not just Firebug)?
Why is some code executable from the browser's point of view but not from the debugger's?
@Mahks Doma: No, there are no iframes in that page, and no Ajax either. Also no linked libraries like jQuery or whatever -- I write almost all my own code from scratch. Some of the JS values were set via PHP, but that shouldn't matter; that's history by the time the debugger sees it. It is complex code, with nested functions, objects, conditionals, and branching logic, and more than one JS file linked into the html page. Only one of the JS files shows the breakpoints problem, but that code works well in the page and throws no errors.
My intuition says debugger "breakability" may have something to do with scope, or code branching... but I just don't see the pattern. Somebody must have written the code in Firebug that decides (not always correctly) which line numbers to turn green -- and that person must know what the logic is.