Frage

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.

War es hilfreich?

Lösung

It never was so simple. Anywhere you want in JS place the statement:

debugger;

If the Chrome debugger is open, it will break there.

Andere Tipps

Use alert() , that should do the trick.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top