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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:41:04+00:00 2026-05-13T16:41:04+00:00

I have an instance variable with several members, many of which have their own

  • 0

I have an instance variable with several members, many of which have their own members and so on. Using the debugger and watch variables, I found a string variable with a specific value that I need by diving into this variable’s members.

However, after spending some time on other things and coming back to this, I am now unable to find where this value is located. When I have my application paused, is there a way to search the values of variables in the current context for a given value?

To clarify, if I have the given structure:

myVariable
|
|--aMember1
|  |--subMember = "A value"
|
|--aMember2
   |--subMember = "Another value"

Is there a way (possibly using the watch list in VS debugger) to search myVariable for any member or submember with the value “A value”, returning to me the path myVariable->aMember->subMember?

  • 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-13T16:41:04+00:00Added an answer on May 13, 2026 at 4:41 pm

    No this feature does not exist in Visual Studio 2008 (or any other version).

    What you can do is add an ID for the value the first time you find it. Simply right click on the value and select “Make Object ID”. This will create a unique identify that shows up in the value such as 1#. You can then type this value into the watch window at any future point and get the value to come back.

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

Sidebar

Related Questions

Let's say we have a class foo which has a private instance variable bar
I have a page-scoped component, which has an instance variable List with data, which
How should one have several different controller' actions set a common instance variable for
I have a static instance variable that is being used throughout my application. It
In java can an instance variable and a method have the same name without
I have a custom class that has as an instance variable of a coordinate:
I need to mock a GrailsControllerClass interface. Instance should have a static variable defined.
I have a global variable that is an instance of my custom class. How
Let's say I have a class Foo with some primitive instance variables. I initialize
Looking to have a database query set all the instance variables in a class:

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.