简体   繁体   English

使用IntelliJ IDEA进行调试时,不同的变量颜色是什么意思?

[英]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.

相关问题 在调试Java时,如果变量在IntelliJ IDEA中名称为“ this $ 0”,那意味着什么? - What does it mean if a variable has the name “this$0” in IntelliJ IDEA while debugging Java? IntelliJ中的Java IDEA:如何在调试时查看变量值? - Java in IntelliJ IDEA: How to view the variable value when debugging? 无法在 Intellij 想法中的黄瓜中进行调试 - Unable to do debugging in cucumber in intellij idea 在InteliJ IDEA中调试Java期间,美元符号在生成的变量名中的含义是什么?是关闭吗? - What does dollar sign mean in generated variable names during debugging Java in InteliJ IDEA ? Is it a closure? 使用IntelliJ IDEA调试ActiveJDBC - Debugging ActiveJDBC with IntelliJ IDEA 使用Intellij Idea进行远程调试 - Remote Debugging with Intellij Idea IntelliJ IDEA中的调试超时 - Debugging timeouts in IntelliJ IDEA 在 IntelliJ IDEA 中调试时,如何防止线程挂起时变量受到影响? - When debugging in IntelliJ IDEA, how do I prevent variables from being affected while the thread is suspended? 使用IntelliJ IDEA进行调试时,如何在JSP中解析Spring模型变量? - How do I resolve Spring model variables in a JSP when debugging with IntelliJ IDEA? 调试存储在由Nashorn和IntelliJ IDEA执行的变量中的Javascript - Debugging Javascript stored in a variable executed by Nashorn and IntelliJ IDEA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM