View return value in debugger?

Answered

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!

9 comments
Comment actions Permalink

In the debugger window, Variables tab, "glasses" icon with tooltip "Watch method return values"

1
Comment actions Permalink

Cannot find it :(

1
Comment actions Permalink

Did this get removed from Clion?  I no longer see a toolbar in the Variables pane.

1
Comment actions Permalink

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.

1
Comment actions Permalink

Just enable the corresponding toolbar button in the debug view. It might be
disabled, because it slows down debugging significantly.

0
Comment actions Permalink

Thanks.  Where do I enable to tool bar button you mentioned?

0
Comment actions Permalink

Yep that worked.  Thanks!!

0
Comment actions Permalink

This is not implemented in CLion. Feel free to file a request at https://youtrack.jetbrains.com/issues/CPP

0

Please sign in to leave a comment.