-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/utils/debug: introduce infrastructure for per-stage debugging
While debugging analysis issues I found myself reinserting the same print statements at the same places for each new investigation. Therefore, introduce an extensible infrastructure to debug different parts of the analysis. The `utils::debug::Settings` object is derived from the command line and an immutable reference to it is the sole thing that is being passed around to convey the current debug environment to different part of the code. It also provides helper methods to perform debug operations based on the runtime environment. The related command-line options and the output format are entirely unstable and only meant for development purposes. Signed-off-by: Valentin Obst <[email protected]>
- Loading branch information
Valentin Obst
committed
Jun 14, 2024
1 parent
1d1bda9
commit 563f9d7
Showing
4 changed files
with
190 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters