Setting breakpoints
"Adam Peller" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.jsdebugger |
|---|---|
| Message-ID | <[email protected]> |
If I want to set a breakpoint on a given line of code in a file, I have to find the jsdIScript object which matches that line of code in a file and set the breakpoint there. Problem is, it's not a 1-1 mapping. When you have closures, you'll get overlapping jsdIScript objects. How do you know which one to set the breakpoint on? I guess you just have to determine which one is the inner-most object, or the smallest subset? I found this API interaction confusing (as well as different from setting breakpoints most debugging APIs) but I'm not sure I can make a convincing argument for why this logic should be buried in the JSD. From just looking at the API, it's not obvious how to set a breakpoint. That's probably not a good reason. Thanks, Adam