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

  • Home
  • SEARCH
  • 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 6037371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:03:49+00:00 2026-05-23T06:03:49+00:00

I had posted a question about stepping into properties Here Turned out to be

  • 0

I had posted a question about stepping into properties Here
Turned out to be problem a with VS2008 and went over to 2010.
I was exploring properties and have hit a point where I need some clarity over how propety values are visible in watch windows but actual calls are not invoked.

When I try to view an objects property in watch window, I can see the value I had assumed that I would be seeing a null. So I put a breakpoint at the property and ran the program again, expecting it to break there. This did not happen. Now,

  • Are the values being shown in debug mode for the property just an additional feature by VS to allow the developer to see the property value, despite this a call should have been invoked
  • or Did I miss a setting? I know I have enabled the “Step in properties” options.
  • As soon as I specifically access the property, the break point hits as it should.

Below is the screen shot of what I see. Call for property is invoked in the next line that was commented out.

enter image description here

Here is my code that I was testing.

namespace ClassPropertiesView
{
    class A
    {
        public int timings
        {
            get
            {
                return objB.bTimes;
            }
        }

        public B objB
        {
            get
            {
                return new B();
            }
        }
    }

    public class B
    {
        public int bTimes
        {
            get
            {
                return -1;
            }
        }
    }
    class Program
    {
        static void Main(string[] args)
        {
            A anObject = new A();
     //       Console.WriteLine(anObject.timings);
        }
    }
}

Any help is appreciated. Thanks!

  • 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. Editorial Team
    Editorial Team
    2026-05-23T06:03:50+00:00Added an answer on May 23, 2026 at 6:03 am

    As you are seeing, the breakpoints you have set in your methods will not be hit when you are using the watch window (and other VS debugging views).

    I’m sure this is by design. If you have a modal Instant Watch window open, and you see a property, how is it going to show you the code behind your current window.

    There is also a setting in Tools…Options… Debug\General called Allow property evaluation in variable windows. If you don’t like the automatic invocation of your get_property method, you can turn it off.

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

Sidebar

Related Questions

I had posted another question earlier about deployment with Passenger. That problem turned out
I had previously posted a question about my query speed with an XML column.
Posted a question about an error I was getting the over day about Memory
So I thought I had fixed the problem posted in this question and I
I had posted a question in regards to this code. I found that JTextArea
I just posted a question about how to get a delegate to update a
Last Updated: 2009-08-11 2:30pm EDT A few days ago I posted this question about
I had a long detailed question about how to get a specific calendar's event
Had an interesting discussion with some colleagues about the best scheduling strategies for realtime
I had been happily coding along on a decent sized solution (just over 13k

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.