|
|
|
Ask HN: How do you debug your JavaScript?
|
|
2 points
by deepanchor
1883 days ago
|
|
I’m getting tired of using console.log all the time, so I’ve finally decided to learn how to debug frontend code the proper way. What are your favourite javascript debugging tips and tricks? |
|
When not debugging on a modern browser with debugging tools like IE6+VS, Firefox, Opera, Safari, or Chrome, it is a real time-saver to be able to toggle those messages, kind of like a poor man's breakpoint.
(I develop retro sites which are designed to live up to the "any browser" dream, so I test with NN2+, IE3+, and Opera3+, in addition to Lynx, w3m, Links, Dillo, NetSurf etc., not to mention the mainstream FF, Chrome, Edge, Safari.)