12.15 debugger statement

2010-05-23

DebuggerStatement :
debugger ;

Implementation specific debugging tool. If implemented, should cause a breakpoint when evaluated. Otherwise should be ignored with no noticable side effects. Since there are no arguments to this statement, there's little that could go wrong.

Code: (Meta Ecma)
function evaluate(debugger ;) {
if (global.debugger) { // "if implementation supports it"
// do implementation specific stuff
// return implementation specific Completion
}
return Completion('normal', undefined, undefined);
}