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 7683383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:46:46+00:00 2026-05-31T18:46:46+00:00

I encountered a problem. I noticed that a Property (say MyProp ) in my

  • 0

I encountered a problem.

I noticed that a Property (say MyProp) in my program is being invoked continuously by the main thread. In spite of a breakpoint is inserted at its get accessor scope, the code isn’t broken at that point! (Why?)

So I couldn’t check the call stack to find out which part of my code is invoking that property on and on. I tried to chack the stack trace manually as follows:

public static MyType MyProp {
    get {
        string threadName = Thread.CurrentThread.Name;
        string MTID = Thread.CurrentThread.ManagedThreadId;

        Debug.WriteLine("» MyProp");
        Debug.Indent();
        Debug.WriteLine("Current Thread : MTID = " + MTID + ", Name = " + threadName);

        StackTrace stack = new StackTrace();
        Debug.WriteLine("Frame Count : " + stack.FrameCount);

        for (int index = 0; index < stack.FrameCount; index++)
        {
            StackFrame frame = st.GetFrame(index);
            string methodName = frame.GetMethod().Name;

            Debug.WriteLine(string.Format("Frame [{0}]: Method = '{1}'", index + 1, methodName));
        }
        Debug.Unindent();

        // Rest of code..
    }
}

Also, I searched the MyProp symbol in entire solution and then used the System.Diagnostics.Debug.WriteLine method wherever this property is invoked, but none of them is written at the Output window!! (How could this be possible?)

By pressing F11 key, (i.e. to start my prog from the very beginning point) and right after required dll-s were loaded, I see the following lines in the Output window:

'MyProg.vshost.exe' (Managed): Loaded 'C:\Windows\assembly\GAC_MSIL\System....dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
:
'MyProg.vshost.exe' (Managed): Loaded 'D:\...\My Prog\bin\Debug\MyProg.exe', Symbols loaded.
'MyProg.vshost.exe' (Managed): Loaded 'D:\...\My Prog\bin\Debug\part1.dll', Symbols loaded.
:
'MyProg.vshost.exe' (Managed): Loaded 'D:\...\My Prog\bin\Debug\partn.dll', Symbols loaded.
» MyProp
    Current Thread : MTID = '9', Name = '' // <- Main thread
    Frame Count : 6
    Frame [1]: Method = 'get_MyProp' // <- How???
    Frame [2]: Method = 'Main'
    Frame [3]: Method = '_nExecuteAssembly'
    Frame [4]: Method = 'RunUsersAssembly'
    Frame [5]: Method = 'Run'
    Frame [6]: Method = 'ThreadStart'

The annoying thing is that every once I go one step ahead (By pressing F10 or F11 key), I see the » MyProp log section again!!!

What could be causeing this and how can I treat this issue? _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-31T18:46:47+00:00Added an answer on May 31, 2026 at 6:46 pm

    How to get all callers?

    If you have ReSharper you can get all call stacks without debugging by placing cursor on your property and pressing Ctrl+Shift+Alt+A and selecting Incoming Calls. (See http://www.jetbrains.com/resharper/webhelp/Code_Analysis__Call_Tracking.html).

    Here is an example of Inspection Results view:
    enter image description here

    Or just use Visual Studio built-in feature: Call Hierarchy. Right-click member and select View Call Hierarchy. Example view:

    enter image description here

    How to set break point within properties?

    Update1: I can debug into properties on my machine (VS2010). My debugging options are:

    enter image description here

    and

    enter image description here

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

Sidebar

Related Questions

I encountered an interesting thing today that I have never noticed before. It appears
I encountered a problem when running some old code that was handed down to
I'm very new in shell scripting, and I encountered a problem that is quite
I encountered a problem after having more than one texture in my engine. My
i encountered a problem using the apache commons-net telnet api, and hope you can
I encountered a problem when I tried to use java from matlab. I read
I encountered a problem closing my javaw.exe process. I like to do it in
I encountered a problem dealing with UTF-8, XML and Perl. The following is the
I encountered a problem after switching from server-side JavaScript to CoffeeScript in a Node.js
Earlier I encountered a problem with dynamic memory in C (visual studio) . I

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.