DEV Community

Discussion on: The definitive guide to JavaScript Debugging [2021 Edition]

Collapse
 
leob profile image
leob

Good overview, but somehow I'm still resorting to console.log more often than not ... why? Two reasons:

1) asynchronous code makes "stepping" a pain (stepping into, that is)

2) transpiling (Babel) makes things painful, more often than not I fail at properly setting up source maps

Could be me, but as a result I always find myself reverting to the tried and true "console.log" way.

Collapse
 
atapas profile image
Tapas Adhikary • Edited

Thanks, @leob for your thoughts!

For # 1, do you use the async switch in the debugger tool?

image

For # 2, Oh yes, agree! Especially when the source maps are missing.

Collapse
 
leob profile image
leob

Wow, that's a great tip for #1, never hear of that, thanks!

Thread Thread
 
atapas profile image
Tapas Adhikary

Glad, it helped 🙂