Viewing variables in a stackframe
This is in continuation to my previous post about getting started with WinDbg. Today, we will take a look at ways to look at the values of variables using SOS extension. We will start with the usual stuff that we did in the last post.
1. Start the process
2. Attach WinDbg to that process
3. Add a breakpoint to Method1
4. Get there
Now, I will reintroduce !CLRStack with a few parameters.
!CLRStack -l Displays all the local variables
!CLRStack -p Displays all the parameters
!CLRStack -a is same as adding both -p and -l
SO, let's do that
!CLRStack -a
I see two different methods here. The one I am interested in is Method1. Let us try to see the arguement that we have here:
!DumpObj /d 028149c4
Tada. You have the value of the string there :)
Comments
Post a Comment