none
Inspect private symbols with DBH / DIA2DUMP on NET program RRS feed

  • Question

  • Hello,

    I am trying to inspect the symbols of a .NET managed program  but I can only see the public methods.
    I can't see any class variable (static or not).

    I tried with DBH and DIA2DUMP with the same result.
    I am targeting NET 4.0 on VS 2010.
    I am building in debug mode.

    With DBH I tried all these options but no luck :
        
            dbh "file.pdb" dump
            dbh "file.pdb" enum *
            dbh "file.pdb" srch globals
            dbh "file.pdb" srch mask=*

    Do you have any idea why I can't see the symbols of the variables ?
        
    Thanks in advance. Regards.

    Friday, October 3, 2014 6:43 PM

All replies

  • Would think pdb for .net does not contain the information you request - they are somewhat limited:
    How Many Secrets do .NET PDB Files Really Contain?
    http://www.wintellect.com/blogs/jrobbins/how-many-secrets-do-net-pdb-files-really-contain

    With kind regards

    Saturday, October 4, 2014 7:59 AM

  • Thanks for your reply.


    According to Robbins' article, .NET PDBs only contain :


       * Source file names and their lines
       * Local variable names


    Well, I developed a very simple C# sample and I was able to see the following info by using "TypeInfoDump" or "Dia2Dump" :

       * Public, private, and static function addresses and names
       * Parameter and local variable names and offsets


    By using "DBH" I was only able to see the function names (public, private and static).


    However,I wasn't able to see the class variables by any way.


    So, my doubt is : are there any class variable symbols on the .NET PDB ?


    Thanks. Regards.
    Tuesday, October 7, 2014 6:57 PM