Debugger only displays function return value on step-in/step-out, not step-over
Answered
Apologies if this is known - I've been unable to find mention of this behavior in the forums or in the issue tracker.
I'm using latest CLion, 2023.2.2. In CLion's debugger settings I have “Show Function Return Values” checked. However, return values are only displayed in the Variables window if I first step into, then step out of a function. I have to set a breakpoint on the function and do that little dance.
If I break on the line after the function the Return Value line is simply not displayed.
The expected behavior: “Return Value” is always displayed, regardless of step-over or step-into/out.
Known issue?
Regards,
Chris P.
Please sign in to leave a comment.
Hello!
This is not a bug, it's how the feature was implemented. See https://www.jetbrains.com/help/clion/2023.1/stepping-through-the-program.html#step-out and CPP-5130.
This is the limitations of gdb/lldb itself, we can show RV only when a debugger reports it.
Ah, OK. Thank you for clarifying the reason behind the behavior.
Regards,
Chris