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

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -