Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / January 2005

Tip: Looking for answers? Try searching our database.

How to show return values in VSNET 2003 Debugger?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jackqq - 03 Jan 2005 08:16 GMT
Can the C/C++ debugger in VS.NET 2003 show the return values of function
calls?
The auto window in VS6 was something alike. But VS.NET 2003 won't display a
return value. Is this feature removed, or arranged to somewhere else?

Signature

jackqq :-)

Peter van der Goes - 03 Jan 2005 11:19 GMT
> Can the C/C++ debugger in VS.NET 2003 show the return values of function
> calls?
> The auto window in VS6 was something alike. But VS.NET 2003 won't display
> a return value. Is this feature removed, or arranged to somewhere else?

Can you provide an example of what you are experiencing?
If I establish variables in calling code to hold returned values, I see the
values in those variables in "Autos". Likewise, if I store the value to be
returned in a variable declared in a called function's code, I see the value
stored in that variable as well. What is it that you're not seeing?

Signature

Peter [MVP Visual Developer]
Jack of all trades, master of none.

jackqq - 03 Jan 2005 14:33 GMT
I found them. :)

The "Autos" windows in both VC6 and VS.NET 2003 display the returned values.
But VS.NET puts them on the top of the "Autos" window, while VC6 on the
bottom. Because of this slight difference, I couldn't find them at first.
Later I accidently scrolled up the "Autos" window, and I saw there they
were.

Actually, by creating variables to hold the return values, we can definitely
see them with the "Autos" or "Locals" window. But what I was referring to is
a feature that Visual Studio Debugger can display the return value of the
last call in the "Autos" window. The item reads "somefunc returned", where
somefunc is the function name, and it has a distinct icon which indicates
it's a returned value.

Then I found that the return values from Windows API functions were not
displayed, while those form C-Run Time functions and user defined functions
were displayed well in the "Autos" window. This applies to both VC6 and
VS.NET 2003.
I think I must have traced a few calls to APIs, and of course, I got no
debugger feedback, and I made the wrong conclusion above.

Thank you! :)

> Can you provide an example of what you are experiencing?
> If I establish variables in calling code to hold returned values, I see
> the values in those variables in "Autos". Likewise, if I store the value
> to be returned in a variable declared in a called function's code, I see
> the value stored in that variable as well. What is it that you're not
> seeing?
Poul - 31 Jan 2005 12:28 GMT
Does this only apply to c/c++. I try to look for the return values in the auto-watch window when debugging c# but couldn't find it.
/Poul

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.