Is there any way to have IntelliJ automatically evaluate an expression when a breakpoint is hit?
I need to run a ton of unit tests in the IntelliJ debugger and have them all stop at the same breakpoint. When each unit test stops there, I will do the following:
Right click and select "Evaluate Expression..."
Enter the code fragment new ObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(myObject) and click Evaluate
Copy the value of the result
Is there any way to have that expression evaluated automatically when it hits the breakpoint, so I don't have to right-click and...