Reputation: 8749
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
Reputation: 8749
Use debugger;
or Sys.Debug.assert() which will hit a debugger statement if assert fails
Upvotes: 1
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