-
While debugging in C#, I often find myself taking a method of the form:
and breaking it into multiple lines like:
just so that I can set a breakpoint on the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you step onto the closing brace, you can see the return value in the Locals window, and you can also put However, this doesn't seem to happen if you put a breakpoint explicitly on the closing brace: you have to step onto the closing brace. You can also see the return value in the Locals window after the method has returned: |
Beta Was this translation helpful? Give feedback.
If you step onto the closing brace, you can see the return value in the Locals window, and you can also put
$ReturnValue
into the Watch window:However, this doesn't seem to happen if you put a breakpoint explicitly on the closing brace: you have to step onto the closing brace.
You can also see the return value in the Locals window after the method has returned: