Devtools Break On Expression
I would like to suspend everything when a given Javascript expression is true. I have seen conditional breakpoints, but that doesn't work for me, because that would require setting
Type the following in Devtools console:
setInterval(function() {
if(<yourcondition>) {
debugger;
}
}, 10);
This will poll for that condition every 10 ms, and break when it is met.
You can adjust 10
to be looser if that works for you. A 10 ms frequency is already a big strain on processor.
Post a Comment for "Devtools Break On Expression"