Paul Paul - 1 year ago 124
Javascript Question

Set a javascript breakpoint in code - in chrome?

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


Is there a way to do this?

xn. xn.
Answer Source

You can use debugger; within your code. If the developer console is open, execution will break. It works in firebug as well.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download