3 ms·
Yes you can, but you need to be pro-active about what you want to know when using gdb (etc.) that way. Logging gives a solid background of stuff you may not ha
by simonblack 5y ago
Yes you can, but you need to be pro-active about what you want to know when using gdb (etc.) that way.
Logging gives a solid background of stuff you may not have thought about specifically. It is often the first clue that 'something is rotten in the state of Denmark' when the values that show up are not what they should be.
In truth, debugging is a detective-story, and anything that helps, be it debuggers or logging or printf, is grist for the mill.
- pjmlp 5y agoMost of the logs I see in production are useless garbage because the coder did not thought of what is relevant. With a debugger I can place the probes and do my own printfs instead.
- simonblack 5y ago<grin> It's not one or the other. You are free to use both, logging and a debugger.