View return value in debugger?

已回答

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.

0
评论操作 固定链接

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
评论操作 固定链接

Yep that worked.  Thanks!!

0
评论操作 固定链接

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
评论操作 固定链接

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

请先登录再写评论。