Reputation: 3752
I'm using Venkman javascript debugger for debugging firefox extension. I set a breakpoint, the javascript is running, but it won't stop on my breakpoints, so I can't debug.
Could you help me with this problem? What's wrong or advise me some alternative debugger?
thank you
Upvotes: 5
Views: 1049
Reputation: 57681
This can happen if the same file is loaded multiple times - e.g. you have several windows open and each of them loads utils.js. Each window loaded the same script but each of them has a different instance of this script now. For the debugger each instance of a script is different (technically speaking, in JavaScript they really are) and when you set a breakpoint you might be doing it on the wrong script instance.
Upvotes: 0
Reputation: 22136
This happens sometimes when you have Firebug and Venkman installed at the same time. Try disabling Firebug, not just from within Firebug's own menu but actually going to the addons list, disabling it, and restarting the browser.
Upvotes: 1