Ryu
Ryu

Reputation: 8749

Why don't visual studio javascript breakpoints work in firebug?

Why can't microsoft make setting a breakpoint in visual studio equivalent to adding the "debugger" keyword in javascript? I want to test javascript cross browser in a unified way.

Upvotes: 0

Views: 1418

Answers (2)

Ryu
Ryu

Reputation: 8749

Use debugger;

or Sys.Debug.assert() which will hit a debugger statement if assert fails

Upvotes: 1

Tracker1
Tracker1

Reputation: 19344

Use the debugger keyword instead of setting breakpoints.. if the debugger is enabled, it will break...

debugger; //breakpoint here

As to why they don't work. Firefox doesn't use the MS scrpting engine,so the VS debugger doesn't attach to Firefox.

Upvotes: 4

Related Questions