We can then take advantage of our custom “DumpLocals” macro
using the simple addition application below:

We’ll use F9 to set a breakpoint on the return statement
within our “Add” method above. We’ll then right-click on the breakpoint
and select the “When hit” menu command:

This will bring up the following dialog. Unlike before
where we used the “Print a message” checkbox option and manually specified the
variables we wanted to output, this time we’ll instead select the “Run a macro”
checkbox and point to the custom UsefulThings.DumpLocals macro we created
above:

We’ll keep the “continue execution” checkbox selected so
that the program will continue running even when our TracePoints are hit.