I am currently debugging complex JavaScript code with Firebug. I am looking for a way to stop the JavaScript execution as if it was a breakpoint programmatically.
Example:
instructions ...
degugger.breakpoint(); // the execution stops here as if a breakpoint was
// manually set
other instructions ...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…