News for hackers. Stuff that matters.
Re:Using 'debugger' to help in javascript debugging by likarish on Monday February 18, 2013 @04:27PM (#5240774)

  It’s better in many cases than manually setting a breakpoint in the inspector.
Why does the author believe that statement is true? I'd much rather manually set breakpoints in the inspector than have to alter code.

edit: formatting

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.