Using embedded symbols with WinDbg

0

I've compiled my assemby with embedded symbols:

namespace SymbolsTest
{
    static class Program
    {
        private static void Main()
        {
            var now = System.DateTime.Now;
            System.Console.WriteLine($"Now:  {now}");
        }
    }
}
csc SymbolsTest.cs /target:exe /platform:x64 /debug+ /debug:embedded /out:SymbolsTest_x64.exe

When I try to load the symbols in WinDbg, I get an error in the symbol loading:

0:000> !CLRStack
OS Thread Id: 0x21e4 (0)
        Child SP               IP Call Site
0000000000dfe940 00007ffa7a0b6004 [PrestubMethodFrame: 0000000000dfe940] SymbolsTest.Program.Main()
0000000000dfee30 00007ffa7a0b6004 [GCFrame: 0000000000dfee30] 
0:000> .reload
Reloading current modules
................................
0:000> .reload /f
Reloading current modules
.*** WARNING: Unable to verify checksum for SymbolsTest_x64.exe
*** ERROR: Module load completed but symbols could not be loaded for SymbolsTest_x64.exe
...........*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Program Files\Avecto\Privilege Guard Client\PGHook.dll - 
....................

************* Symbol Loading Error Summary **************
Module name            Error
SymbolsTest_x64        0x80190194 - Not found (404). : srv*c:\symbols*http://msdl.microsoft.com/download/symbols
PGHook                 0x80190194 - Not found (404). : srv*c:\symbols*http://msdl.microsoft.com/download/symbols

You can troubleshoot most symbol related issues by turning on symbol loading diagnostics (!sym noisy) and repeating the command that caused symbols to be loaded.
You should also verify that your symbol search path (.sympath) is correct.

The sympath is set correctly (what I think is correct):

0:000> .sympath
Symbol search path is: srv*C:\Symbols*http://msdl.microsoft.com/download/symbols
Expanded Symbol search path is: srv*c:\symbols*http://msdl.microsoft.com/download/symbols

************* Path validation summary **************
Response                         Time (ms)     Location
Deferred                                       srv*C:\Symbols*http://msdl.microsoft.com/download/symbols

How so I tell the debugger to that the symbols are embedded in the file?

.net
windows
windbg
sos
sosex
asked on Stack Overflow Oct 8, 2018 by BanksySan

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0