Can I find out the return value before returning while debugging in Visual Studio?

Take the following function:

DataTable go() {
    return someTableAdapter.getSomeData();
}

When I set a breakpoint in this function, is there a possibility to inspect the returned value? go() is directly coupled to a datagrid in an .aspx page.

The only way to inspect the returned datatable is to use a temporary variable. However, that’s a bit inconvenient. Isn’t there another way?

21 Answers
21

Leave a Comment