Something similar was discussed for disabling assertations, and I think the solution here might be able to be adapted to your case: @assert alternatives? - #14 by WschW
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Using @logmsg with begin/end blocks | 3 | 308 | May 24, 2023 | |
| Creating a conditional log | 9 | 231 | August 8, 2024 | |
| Debug checks without output | 5 | 357 | November 18, 2022 | |
| Print debugging output only if some condition holds | 1 | 823 | December 10, 2020 | |
| Debugging macros at module loading | 0 | 401 | May 11, 2020 |