Recording complex objects in JAVA
To use this feature, create a rdbDisplay file in the project root directory. It will store information about which methods to use to serialize objects. You can provide a customized method that serializes only relevant business logic data.
RdbDisplay file
Each line in the file should contain information about a single type and the corresponding serialization method. The type name must include a full namespace and after a colon, it defines an object method or a fully qualified static method that accepts one parameter of the corresponding type, which RevDeBug will use to serialize the object content.
In the above example, the toString method of the JSONObject object was used to serialize the content of JSONObject objects transmitted in the source code.
In our demo application, the CalculateReconcilation(String id) method analyzes data from the JSON file. When using RevDeBug recording, the content of the analyzed file is preserved and visible while browsing the recording even if the file or the whole process no longer exists.
Below is the result of such action shown in the RevDeBug interface:
Value prompts - values overlayed on code
Last modified 9mo ago
Copy link