DEV Community

Discussion on: Ditch Console Log

Collapse
 
ludamillion profile image
Luke Inglis

I'm not sure I see how switching out of the context of my editor finding the proper source file point in DevTools and clicking is any faster than adding a line to my code. Especially for adding more than one log statement.

Of course that's mostly just me being a old fart who's probably lived in ViM too long. To each their own when it comes to debugging.

Collapse
 
camdhall profile image
CamDHall

One thing to consider, with logpoint you won't have to remove it once you're finished. If you sprinkle a bunch of console logs into your code, you should remove those before pushing to production. If you're using logpoint, you don't need to do this at all.

Collapse
 
ludamillion profile image
Luke Inglis

That's certainly a positive of that approach.

I always lint my code before committing it anyway so that keeps me from accidentally publishing a log statement.