Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 71393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T19:52:51+00:00 2026-05-10T19:52:51+00:00

Take the following function: DataTable go() { return someTableAdapter.getSomeData(); } When I set a

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T19:52:51+00:00Added an answer on May 10, 2026 at 7:52 pm

    Not that I know of. Note that if you do add a variable, it will get removed by the compiler in release builds anyway…

    Update: This functionality has been added to VS2013. You can see the return values in the autos windows or use $ReturnValue (or $ReturnValue1 or $returnvalue, depending on the VS version) in the watch/immediate window.

    The value can only be seen directly after returning from the function, thus the easiest way to access it is by putting a breakpoint on the function call and step over (F10) the call.


    Update for VS2015: boo! unfortunately, it doesn’t appear to be in VS2015 (devenv v14)
    Update for VS2017: it’s back. (devenv v15)
    Update for VS2022: In Visual Studio 2022 the name $ReturnValue in watch window works, but it needs to be added to the watch window BEFORE "return" statement is hit, not after. (according to Andrew)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 64k
  • Answers 64k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer StyleCop (aka MS SourceAnalysis) can do this for you. Here… May 11, 2026 at 10:41 am
  • added an answer The GPS radio is only accessible through the Core Location… May 11, 2026 at 10:41 am
  • added an answer Have you tried a relative path? RewriteRule ^account/orders$ account/orders.php [L]… May 11, 2026 at 10:41 am

Related Questions

Take the following function: DataTable go() { return someTableAdapter.getSomeData(); } When I set a
Take the following snippet: List<int> distances = new List<int>(); Was the redundancy intended by
Take the following two lines of code: for (int i = 0; i <
Take the following string as an example: The quick brown fox Right now the
Take the following C# class: c1 { event EventHandler someEvent; } If there are
Take the following generics example import java.util.List; import java.util.ArrayList; public class GenericsTest { private
Take the following hypothetical situation, how would I implement it in MVC? All my
Take the following code for example; if (Convert.ToString(frm.WindowState) == Minimized) Layout.WindowState = Maximized; else
Take the following class as an example: class Sometype { int someValue; public Sometype(int
Take the following useless program: class Program { static void Main(string[] args) { IUnityContainer

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.