IntelliJ Idea - search for a value in debugger

2020-06-30 05:06发布

问题:

I need to know if it is possible to search for a value in debugger in IntelliJ Idea.

Example: you have a huge object tree and you need to find string variable that is set to same particular value.

Is there any way to do that?

回答1:

Expand this tree so that you see all those strings, and start typing what you search for. The speed search should do the rest. To get to the next/previous results press the down/up arrows respectively.



回答2:

Sorry to disappoint you, I don't think that this option exists. The quick search will only look for values in expanded objects.

You can use some other tool to create a memory dump of this object, and look for your data there.



回答3:

In the "Find action ..." menu, you select "Fully expand tree node" or use Numpad *