3 ms·
I prefer debugger; in 2 scenarios: 1) I have the code open in my text editor but not in the inspector. Rather than open it in the inspector and search around
by rco8786 14y ago
I prefer debugger; in 2 scenarios:
1) I have the code open in my text editor but not in the inspector. Rather than open it in the inspector and search around for where I need the breakpoint I can just pop it in the code and the inspector will open up where I need it.
2) Working with single page apps where breakpoints sometimes have a hard time persisting after a file changes. Nothing more frustrating than making a change and losing your breakpoints.