5 ms·
And how about highly congested multi threaded programs? I've got a program with log statements like that all over the place. Since stepping through it with a d
by SCHiM 6y ago
And how about highly congested multi threaded programs?
I've got a program with log statements like that all over the place. Since stepping through it with a debugger would not even be possible. My IDE takes care of hiding the debug statements, since they're all encapsulated in different regions and if-def statements to log different types of things.
- coddle-hark 6y agoIsn’t that what tracepoints are for though? Flipping your argument, you’re basically saying that you can’t debug multithreaded code if the program doesn’t log.
- SCHiM 6y agoI certainly wouldn't want to debug this ball of mud if there were no log statements, no :) But, I think we're depending on different programs in our workflow. I much prefer a logfile with statements that focus on what I want to inspect at the time. I'm quite proficient with debuggers on both Windows and Linux, but I tend to use them less when dealing with my own multi-threaded code.
- merb 6y agothat works maybe with multi threaded code but not with greenthreads that are all over the place. the calls stacks are a pain in the ass.