Search code examples
javaintellij-ideareflectionbreakpoints

How can I export all variable information at a breakpoint in idea IDE for java


I want to export every objects' field including nested fields at a breakpoint for comparison.

Now what I need to do is to click and expand all objects that have more fields. After that, I am finally able to ctrl-A and ctrl-C, i.e., copying everything. Therefore, my question is: is there a way to help export that information more quickly?

Attached is the debugger view in IDE.

idea debugging view


Solution

    1. Bind "Fully expand tree node" action to a shortcut under Settings > Keymap: IntelliJ IDEA keymap
    2. Focus the debugger "Variables" window, select all variables (Ctrl +A) and invoke the action from step 1 (Fully expand tree node) via the configured shortcut
    3. Right-click and choose View text View text debugger IntelliJ IDEA