I wonder what I should do in a situation given in the following example:
I built a condition, based on the preprocessor directive #if DEBUG. SonarQube says that the code never executes, but this is only true if the project is built in Release mode. My question is, should I simply ignore this warning or can I build such a construct otherwise? Should I put the #if debug around the throw and remove the debug variable in this case? What if I have a lot of code inside this #if #else ?