[英]When debugging with IntelliJ IDEA, what do the different variable colors mean?
So when debugging with IntelliJ IDEA, the Variable Window often looks like this: 因此,在使用IntelliJ IDEA进行调试时,可变窗口通常如下所示:
(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. 我没有在网上找到任何关于此的内容。
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.
如果继续循环的下一次迭代(假设offlineNotifications是一个Collection),您将看到这些是当前代码执行中操作的变量。
For me, non-project files are set to brown, and tests are set to green. 对我来说,非项目文件设置为棕色,测试设置为绿色。 I think you may also define colors for other file types
我想你也可以为其他文件类型定义颜色
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.