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.
Ex
You can use the debugger statement:
// your JS code ... // break here debugger;
It works in all major browsers.