WE want to force the chrome debugger to break on a line via code, or else using some sort of comment tag such as something like console.break(). Is there a way to do this
We can use debugger; within our code. If the developer console is open, execution will break. It works in firebug as well.
As other have already said, debugger; is the way to go. WE wrote a small script that we can use from the command line in a browser to set and remove breakpoint right before function call:
Set up a button click listener and call the debugger;
We can also use debug(function), to break when function is called. Command Line APWE Reference: debug