Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Visual Studio debugger plugin: How do I enumerate all locals (and their internal properties, recursively) for a full call stack?

$
0
0

Hi,

I am trying to write a plugin that will dump the complete linked state (think, everything you could every eventually see from the local pane in visual studio if you kept clicking enough) from a call stack.  Specifically, I want to load up a call stack dump and:

for each thread:

  for each frame  in callstack:

    for each variable in locals (including 'this')

      for each property/member of variable:

        if property/member is primitive - print value

        if property/member is struct or class - recur          

   

I have never done anything link this before, but it doesn't seem that hard, at least in theory.  I found this example:

https://msdn.microsoft.com/en-us/library/bb146311.aspx

... but I don't know how to plug it into the larger debugger architecture.  Are there any samples out there like recursive_call_stack_dumper.sln? :)

Thank you!

Denny


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>