Re:Speeding up the Rust edit-build-run cycle
by pjmlp on Thursday November 14, 2024 @04:39PM
(#42141510)
That is where OS tracing like DTrace and ETW come into play, which can then be loaded into a debugging session.
Re:Speeding up the Rust edit-build-run cycle
by kaba0 on Friday November 15, 2024 @03:41AM
(#42144999)
Logging can change timing issues though. There are too many cases where an added log statement "fixed" a race condition, simply by altering the timing/adding some form of synchronization inherent in the logging library.
Ultimately, if you have a good logging setup and kinda know where the issue is a quick log message could be faster than debugging if all you want to do is look a variable value.