Hacker News new | ask | show | jobs
by hcarvalhoalves 4586 days ago
I only use "print debugging" (using the logging facilities more often than not) if it's something I can leave in the codebase, like logging a function call and it's parameters, or when a routine is being skipped; then a debugger if I want to check the interface or docstring of some object or retry a call with different parameters on the REPL.
1 comments

Alternatively, if your language/runtime/whatever supports it you can use dtrace for printf-debugging without editing the source.