Hacker News new | ask | show | jobs
by 0x457 588 days ago
Enable them when you need to debug. This is for speeding up "edit-build-run" workflows.
1 comments

It's a lot faster to add a log point in a debugger than to add a print statement and recompile. Especially with cargo check, I really don't see the point of non-debuggable builds (outside of embedded, but the size of debuginfo already makes that a non-starter).
Yes, but we're talking about time spent with "add a print statement and recompile" vs time saved by not including debuginfo on every other build. You have to do that comparison yourself.