Eclipse 的 Java 工具是否具有与 价值跟踪 检查?这类似于调用层次结构,但跟踪特定变量的所有先前值分配和参数传递。
为了澄清这一点,我正在寻找一种在 IDE 中使用静态分析来跟踪值来源的工具;这不是在运行时调试。
Do Eclipse's Java tools have any equivalent (built-in or plugin) to the Value Tracking inspection in ReSharper? This would be similar to a Call Hierarchy, but tracks all previous value assignments and argument passes for a particular variable.
To clarify, I'm looking for a tool that uses static analysis to trace the origin of a value, within the IDE; this is not debugging at runtime.
发布评论
评论(2)
在eclipse中使用调试器模式是非常强大的。 (添加手表!)
Use the debugger mode in eclipse is very powerful. (Add watches!)
突出显示该变量,然后按 Control+Shift+G 或右键单击 -> 引用 -> 工作区将为您提供特定变量的所有引用,您可以通过这种方式查看它被分配或作为参数传递的位置。它将显示在底部的窗口中,双击将直接转到参考。
Highlight the variable and then press Control+Shift+G or Right Click->References->Workspace will get you all of the references of a particular variable, and you can see where it was assigned or passed as an argument that way. It will show up in a window on the bottom, and a double click will take you directly to the reference.