xralf
xralf

Reputation: 3752

Problem with debugging firefox extension

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

Answers (3)

Wladimir Palant
Wladimir Palant

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

Tyler
Tyler

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

Pat
Pat

Reputation: 2238

I'd definitely recommend using Firebug. Much, much better than Venkman.

Upvotes: 1

Related Questions