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 | 288 | May 24, 2023 | |
| Creating a conditional log | 9 | 201 | August 8, 2024 | |
| Debug checks without output | 5 | 330 | November 18, 2022 | |
| Print debugging output only if some condition holds | 1 | 817 | December 10, 2020 | |
| Debugging macros at module loading | 0 | 396 | May 11, 2020 |