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.
source share