Search code examples
c#.netwindbgadplus

_NT_SYMBOL_PATH adplus windbg issue, not able to set name


In command line I have run the following command: C:> set _NT_SYMBOL_PATH=srvc:\symbolshttp://msdl.microsoft.com/download/symbols enter image description here

But when I run the following command in adplus.exe

C:\Program Files (x86)\Debugging Tools for Windows (x86)>ADPlus -crash -pn w3wp .exe -o C:\dumps

I always get this warning: enter image description here


Solution

  • When you run the set command in a CMD shell it will only set the environment variable for that particular CMD instance and typically child processes. From your question it looks like you may be running the set and ADPlus commands from different CMD consoles. If that's the case this is the source of the problem.

    In order to set a permanent environment variable do the following

    • Click on the Start Menu
    • Right click on Computer and select Properties
    • Select Adavanced System Settings
    • Click Environment Variables
    • Click New on User variables for ...
    • Add the _NT_SYMBOL_PATH value there