It never was so simple. Anywhere you want in JS place the statement:
debugger;
If the Chrome debugger is open, it will break there.
Question
Using any JS dev tools is there a way to programmatically create a debugger break point? I'm using chrome, but don't mind to switch to a different environment supporting the feature.
Solution
It never was so simple. Anywhere you want in JS place the statement:
debugger;
If the Chrome debugger is open, it will break there.
OTHER TIPS
Use alert() , that should do the trick.