IntelliJ IDEA debugger for Java: return desirable value from method during debug

Yes, there is. This feature was introduced in IntelliJ IDEA 15. When debugging, open the debugger window, select the frames tab (beside threads) then right click on a frame/method in the list and select “Force Return” and supply the value.

Leave a Comment