microsoft / DirectX-Graphics-Samples

This repo contains the DirectX Graphics samples that demonstrate how to build graphics intensive applications on Windows.
MIT License
5.89k stars 2k forks source link

Are d3d12SDKLayers.dll symbols available? #781

Closed ms-RistoRK closed 2 years ago

ms-RistoRK commented 2 years ago

Hello,

I'm developing a DirectX 12 app and I would like to load a D3d12SDKLayers.dll symbols for a better debugging experience. Could someone please point me to where/how to get those symbols?

image

Thanks in advance,

Risto

PathogenDavid commented 2 years ago

I was able to load them from Microsoft's symbol servers. Make sure they're enabled under Tools > Options > Debugging > Symbols.

If it doesn't load them automatically, go to Debug > Windows > Modules, right-click the module, and select Load Symbols.

As an aside though, type information is not provided by the public symbol files. So you won't get any new information in the watch window:

Screenshot of watch window showing "No type information available" error

walbourn commented 2 years ago

The Microsoft Symbol Server provides these, although not necessarily if you are running Windows Insider builds.

https://docs.microsoft.com/en-us/windows/win32/dxtecharts/debugging-with-symbols#using-the-microsoft-symbol-server

ms-RistoRK commented 2 years ago

Thank you both. I got the symbols servers referenced and the symbols files are now used.