c# - Can I find out the return value before returning while debugging in Visual Studio -


take following function:

datatable go() {   return sometableadapter.getsomedata(); } 

when set breakpoint in function, there possibility inspect returned value? go() directly coupled datagrid in .aspx page.

the way inspect returned datatable, use temporary variable. however, that's bit inconvenient. isn't there way?

not know of. note if do add variable, removed compiler in release builds anyway...

update: this functionality has been added vs2013. can see return values in autos windows or use $returnvalue in watch/immediate window.

the value can seen directly after returning function, easiest way access putting breakpoint on function call , step on (f10) call.


update vs2015: boo! unfortunately, doesn't appear in vs2015 (devenv v14)


Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

sql server - SQL Query returns one result, does not return 0 or NULL result -