So when debugging with IntelliJ IDEA, the Variable Window often looks like this:
(the white box is added by me afterwards)
Now i have some variables colored red, others colored blue.
Whats the meaning of the color, what is difference between these colors? I have also noticed red variables with blue fields and the other way around.
I didnt find anything on the web about this.
Green is for added, but not commited files. Please check related article about colors: jetbrains.com/help/idea/file-status-highlights.html. – y.bedrov.
IntelliJ IDEA allows you to inspect variables in a dedicated dialog. This is useful when you need to keep track of some variable (or the object whose reference it holds) and at the same time be able to navigate between frames and threads. Right-click a variable on the Variables tab and select Inspect.
Press Ctrl+Alt+S to open the IDE settings and select Editor | Color Scheme. Use the Scheme list to select a color scheme.
During a debugging session, you launch your program with the debugger attached to it. The purpose of the debugger is to interfere with the program execution and provide you with the information on what's happening under the hood. This facilitates the process of detecting and fixing bugs in your program.
Red is the standard color for variables.
Blue indicates that a variable has changed while you're stepping through the code. If you continue to the next iteration of your loop (assuming offlineNotifications is a Collection), you will see those are the variables manipulated in the current execution of code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With