Re:Using 'debugger' to help in javascript debugging
by rco8786 on Monday February 18, 2013 @04:47PM
(#5240946)
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.
edit: formatting