Discussion

Ask HN: How do you deal with “slipping breakpoints” in JavaScript debuggers?

This has been annoying me ever since I started working as a JS dev.

Say you have a 100 line file, you put breakpoint in L80 in Chrome devtools. Then you add a line at the beginning, and L80 becomes L81. The breakpoint I just put a minute ago can fall on an empty line and never execute.

I know about `debugger` which is quite handy sometimes, but it's not very feasible to pollute whole codebase with it during debugging session.

Any other options?

1 points jakub_g 10 years ago 1 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton