- Home /
How to debug shaders using vs2013?
I've followed this guide: DebuggingD3D11ShadersWithVS
I can capture a frame fine but when I proceed to press play button to debug like shown in picture below it won't debug as shown in the guide.
I get the following message: "Source Not Available" "Source Information is missing from the debug information for this module". What am I missing to get debugging working as shown in the guide?
I'm using VS2013 Community Edition and win8.1. I've tried both x64 and x86 development builds.
Have you added "#pragma enable_d3d11_debug_symbols" to your shader like the docs said when you build your project?
Yep, it's there. I've also copypasted that exact shader and I've tried multiple others with same results.
Answer by Malapropos · May 14, 2015 at 10:34 PM
Found more in-depth guide that covered more possible causes: https://en.wikibooks.org/wiki/Cg_Programming/Unity/Debugging_of_Shaders#Debugging_using_Visual_Studio
In my case, I needed to re-install Microsoft DirectX SDK. It was quite a pain since install would fail unless you uninstall Microsoft Visual C++ 2010 Redistributables (both x64 and x86) first. Installing Microsoft DirectX SDK will also install both of those. After restarting everything worked as expected.
Your answer
Follow this Question
Related Questions
Use Visual Studio to debug Unity. Cannot connect to process 2 Answers
Impossible to use Visual Studio 2015 Debugger anymore (Unity 5.2.1f) 2 Answers
VS 2013: Breakpoint only if an error happens 0 Answers
Editor Script and Visual Studio Release Configuration ? 2 Answers
How to force the compilation of a shader in Unity? 5 Answers