No. DEBUG is disabled on the environment, which is attached to SonarQube. But anyway, the method is definitely not empty. Also there are some other methods in project with opposite condition “#if !DEBUG”
I Do understand how “#if” constructions work (and how it is being compiled). But I do not see some adequate solution from my side. Adding some dummy commands into the method is not a good idea. I can ignore this warning. I can even treat it as not a bug or as fixed, ect. I just wanted to help you project, point you to the real life case where you might fix something, enhance some rules and make your product better.