I need to write a lot of information in my debugging software. However, I only need this option during development, I would prefer to exclude all this code in Release.
Of course, I can surround the place that I want to debug with "if":
if (isDebugMode()) { Logger.log(blahblah); }
But because my software is pretty critical, I want to avoid a lot of failed if tests.
those. I think I need an analogue of C # #define #ifdef #ifndef. Is there any technique in C # or .net to easily solve my problem?
source share