genxgeek
genxgeek

Reputation: 13347

How to set debug on flag in intellij?

I have some code inherited and has the following method that runs code based on if there is a DEBUG_ON flag.

Where can I set this within intellij (or is this an intellij thing)?

   private void stuff(String s) {
        if (DEBUG_ON) {
            System.out.println(debug on...);
        }
    }

Upvotes: 0

Views: 742

Answers (1)

hgoebl
hgoebl

Reputation: 13007

This has nothing to do with IntelliJ.

Go with the mouse to DEBUG_ON and press Ctrl+Click. You will land on the definition of this boolean flag. This is plain old Java. No magic. If the definition is not in a compiled class of a library, but in your source code, you can change the value (true/false).

Upvotes: 1

Related Questions