Hacker News new | ask | show | jobs
by piyush_soni 3704 days ago
See I'm so naive I don't even know if this is sarcasm. :/
1 comments

I'm 100% serious. Interactive debugging is hugely overrated. I am not aware of a debugging technique better than logging + contracts + asserts.
For one, that forces you to change the code and recompile all the time. And some projects have huge recompile times.
And compiling in a debug mode also results in huge recompile times. Is it such a problem?

There is no big difference between building with contracts and logs on (log level is selected dynamically, no need to recompile) and building with debug symbols/suppressed optimisations.