View return value in debugger? Follow Answered peter peter Created December 13, 2008 01:26 While debugging a java application, sometimes I wish to view the value returned from a method when I step out of it. How do I do that? Thanks!
Just enable the corresponding toolbar button in the debug view. It might be
disabled, because it slows down debugging significantly.
Thanks. Where do I enable to tool bar button you mentioned?
In the debugger window, Variables tab, "glasses" icon with tooltip "Watch method return values"
Yep that worked. Thanks!!
Cannot find it :(
Did this get removed from Clion? I no longer see a toolbar in the Variables pane.
This is not implemented in CLion. Feel free to file a request at https://youtrack.jetbrains.com/issues/CPP
In 2017.3 there is no "glasses icon" in the Run Dashboard. This feature seems to have been moved the the Run Dashboard's settings, which you find under the gear wheel icon on the left.
The issue for CLion: https://youtrack.jetbrains.com/issue/CPP-5130