Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ Idea - search for a value in debugger

Tags:

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?

like image 486
Jarek Avatar asked Nov 24 '11 15:11

Jarek


People also ask

How do I find the value of a variable in IntelliJ?

Compare variable values with the clipboard In the Variables pane of the Debug window, select the desired variable. Right-click the variable and choose Compare Value with Clipboard from the context menu.

How do I inspect a variable in debug mode IntelliJ?

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.

How can I see values in debug mode?

Hover over a variable to see its value. When stopped in the debugger hover the mouse cursor over the variable you want to look at. The DataTip will appear showing you the value of that variable. If the variable is an object, you can expand the object by clicking on the arrow to see the elements of that object.

How do I navigate in debug mode IntelliJ?

From the main menu, select Run | Debugging Actions | Smart Step Into or press Shift+F7 . Click the method. You can also select it using the arrow keys or tabs and press Enter / F7 .


1 Answers

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.

like image 94
Peter Gromov Avatar answered Nov 11 '22 00:11

Peter Gromov