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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:54:53+00:00 2026-06-17T20:54:53+00:00

Is it possible to capture the debug data that’s used by the locals and

  • 0

Is it possible to capture the debug data that’s used by the locals and debug window, using EnvDTE for a .vsix visual studio extension? Or is it possible through another method?

I would like to create a custom Locals window that we can modify to display some of our more heavy content as we like, without sacrificing the original Locals window for power users. The ideal solution would be to grab the data being sent to the locals window so I could build my own tree.

  • 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-06-17T20:54:54+00:00Added an answer on June 17, 2026 at 8:54 pm

    Turns out this is actually quite simple!

    DTE dte = (DTE).Package.GetGlobalService(typeof(DTE));
    if(dte.Debugger.CurrentStackFrame != null) // Ensure that debugger is running
    {
        EnvDTE.Expressions locals = dte.Debugger.CurrentStackFrame.Locals;
        foreach(EnvDTE.Expression local in locals)
        {
            EnvDTE.Expressions members = expression.DataMembers;
            // Do this section recursively, looking down in each expression for 
            // the next set of data members. This will build the tree.
            // DataMembers is never null, instead just iterating over a 0-length list.
        }
    }
    

    Each expression contains:

    • Name (string)
    • Value (string value displayed in the locals window)
    • Type (string name of type)
    • Parent (type is of parent type)
    • DataMembers (iteratable collection of its children (never null))
    • IsValid (bool)

    Hope this helps anyone else looking to do something similar!

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

Sidebar

Related Questions

Is it possible to capture a snapshot of a video that's loaded using the
It's possible to capture a query's result using SQL Server Profiler? i.e. the resultset
I know it's possible to capture a screen of an application that is behind
Is it possible to capture keyboard events within a diagram produced using Dojox.GFX? We
Hello is it possible to capture screenshot of the video being played using html
Is it possible to capture output from wget and other command line programs that
Using Java is it possible to capture the speaker output? This output is not
using python3's regex capabilities, is it possible to capture variable numbers of capture blocks,
Using JQuery,Is there any possible to capture images/scanned documents from digital Camera/Scanner Connected to
I was wondering whether it is possible to capture audio data from other sources

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.