IntelliJ Debugger Data View

IntelliJ has a function that allows you to specify an expression to execute instead of .toString() when displaying a text representation of an object in the debugger.

Unfortunately, in my specific case, the operation that I want to perform is not small enough to correspond to a single expression (namely, iterating through an array, converting each of its elements into a string, and combining these strings together). The object itself is defined in the generated code, so the question of the .toPrettyString() method is impossible.

Is there a way to create a more sophisticated debugging view? Eclipse can do this.

+4
source share
1 answer

I don’t know how to perform a complex debugging operation in IntelliJ, but you can use the debug helper class that contains static methods that will execute the task and pass your instance to this method in the data type visualizer ...

+2
source

Source: https://habr.com/ru/post/1333001/


All Articles