snippetjavascriptCritical
How to set a JavaScript breakpoint from code in Chrome?
Viewed 0 times
howfromcodesetchromebreakpointjavascript
Problem
I 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().Solution
You can use
debugger; within your code. If the developer console is open, execution will break. It works in firebug as well.Context
Stack Overflow Q#10050465, score: 1283
Revisions (0)
No revisions yet.