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!

2
9 comments
Avatar
Permanently deleted user

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

0
Avatar
Permanently deleted user

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

0

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

1
Avatar
Permanently deleted user

Yep that worked.  Thanks!!

0

Cannot find it :(

1
Avatar
Permanently deleted user

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

1

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

0
Avatar
Permanently deleted user

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

Please sign in to leave a comment.