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.
Thanks, @leob for your thoughts!
For # 1, do you use the async switch in the debugger tool?
async
For # 2, Oh yes, agree! Especially when the source maps are missing.
Wow, that's a great tip for #1, never hear of that, thanks!
Glad, it helped 🙂
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
Thanks, @leob for your thoughts!
For # 1, do you use the
asyncswitch in the debugger tool?For # 2, Oh yes, agree! Especially when the source maps are missing.
Wow, that's a great tip for #1, never hear of that, thanks!
Glad, it helped 🙂