how to see my managed objects on the stack?

Posted by smwikipedia on Stack Overflow See other posts from Stack Overflow or by smwikipedia
Published on 2010-04-09T03:35:29Z Indexed on 2010/04/09 3:43 UTC
Read the original article Hit count: 498

Filed under:
|
|

I use SOS.dll in VisualStudio to debug my C# program. The program is as below.

The debug command is !DumpStackObjects.

class Program
{
    static void Main()
    {
        Int32 result = f(1);
    }

    static Int32 f(Int32 i)
    {
        Int32 j = i + 1;
        return j;            <===========BreakPoint is here
    }
}

After I input the "!dso" command in the immediate window of Visual Studio, the result is as below:

OS Thread Id: 0xf6c (3948)

ESP/REG Object Name

Why there's nothing? I thought there should be the args i and local variable j.

Thanks for my answering my naive questions...

© Stack Overflow or respective owner

Related posts about sos

Related posts about .NET