In Eclipse there is feature "Force return" which allows to return any selected object from method call. Is there such feature in IntelliJ IDEA?
Select a variable or a property of a complex object in the Debug window, press F2 or right-click and choose Set Value... from the context menu, and then specify a new value and press Enter .
Run the program in debug mode Click the Run icon in the gutter, then select Modify Run Configuration. Enter arguments in the Program arguments field. Click the Run button near the main method. From the menu, select 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With