Visual Studio Graphics Tools - Shader Debugging - Debugging shader not working anymore

Georg Rottensteiner 6 Reputation points
2020-08-21T09:40:20.623+00:00

Simplified I'm using DX11 in C++. On an older Windows 10 installation I could debug through my shader code (captured a frame, chose a pixel, stepped through the vertex and pixel shader).

But on my new machine, whenever I want to enter a shader I get this message:

Enable GPU disassembly via View->Options->Graphics Diagnostics->Enable gather of GPU Disassembly.

However there is no such option. Shaders are compiled with the current fxc.exe with debug information (which, as said before, worked fine on a different PC).
So what could be the issue with this?

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,004 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Georg Rottensteiner 6 Reputation points
    2020-08-21T16:06:46.157+00:00

    Found the problem, I had not reset PowerShells execution-policy, ending up in my shader compiling script not running properly, and in the end no debug information in the shaders.

    Problem solved!

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.