638
edits
No edit summary |
No edit summary |
||
| Line 22: | Line 22: | ||
This automatically turns on debug mode for the target compartment, so the <code>-d</code> option is unnecessary. Hooray! | This automatically turns on debug mode for the target compartment, so the <code>-d</code> option is unnecessary. Hooray! | ||
Debugger statements are extremely useful for testing the debugger. This is actually a standard part of the ECMAScript language: a debugger statement looks like this: <code>debugger;</code> | Debugger statements are extremely useful for testing the debugger. This is actually a standard part of the ECMAScript language: a debugger statement looks like this: <code>debugger;</code> and when it executes, the behavior is implementation-defined. In our case, it fires an <code>onDebuggerStatement</code> event. So we set a handler for that event: | ||
var c; | var c; | ||
edits