DEV Community

Discussion on: How do YOU debug

Collapse
 
waylonwalker profile image
Waylon Walker

OMG, I've been simulating a debugger with print statements.

🤣

I like the idea of copying the function. For some reason I only do this when developing cli tools, but sometimes I will make a verbose flag, then make a separate print function that does an if versbose fro me and i just call vprint for example.