I'm investigating the possibilities to set up a breakpoint instantly when debugging JavaScript
for (...) {
for (...) {
...
}
// need a breakpoint here
}
The problem here is that a breakpoint cannot be toggled on comment line, it needs a statement.
And when debugger statement is added to line, another problem appears - it doesn't switch to Debugger tab automatically. It just looks like the application is pending, with no indication.
And I'm trying to avoid adding dummy statements because they can be neglected (as for debugger, there is at least an inspection rule to highlight it).
Are there any tricks to achieve this? Can debugger statement be made to behave like usual breakpoint at least?
debuggerstatement?debuggerstatement. So it just looks like nothing happens, unless a user switches to Debugger tab manually. Please, let me know if you cannot replicate this behaviour.--inspect). I'm not sure why this happens but this not really a big issue as I usually know that I've got a breakpoint somewhere.