|
|
|
|
|
by deergomoo
2601 days ago
|
|
I’ve never understood the “I don’t need a debugger - print statements are fine” argument. Even if you only use a debugger to view application state, (which, for most debuggers, is but a tiny fraction of their capability) it’s still an order of magnitude more convenient than print statements. No need to modify code, and no risk of forgetting to remove a print statement (I have seen a forgotten dump on a rare execution path leak sensitive data to users first hand). Not to mention the cases where printing can change or break the program in some cases; for example printing before sending headers in something like PHP. |
|