Jump to content
  • Advertisement
Sign in to follow this  
pankajsachdeva85

Shaders are never available for debug

This topic is 2468 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

I am trying to debug the shaders using the NVIDIA Parallel Nsight 2.1 but I am unable to do so. As soon as I start debug with Nsight there is a message in Shaders window "Shader Debugger is not available". So, I googled this problem and found this link. I have tried all the options that are discussed into the above thread, still no success.

If any of you guys have any experience of debugging shaders, then please help me with this problem.

Thanks,

Pankaj

Share this post


Link to post
Share on other sites
Advertisement
Do you have a two-machine configuration? In order to do live shader debugging on actual hardware, the driver and GPU need to be interrupted and this means that the debugger itself cannot run on the same machine (because it would effectively be stopped too). Hence the need for the second machine to host the debugger.

Do you use D3D? Microsoft's PIX tool lets you debug shaders using the reference device (emulator) and you can inspect and step thru any primitive.

Share this post


Link to post
Share on other sites
Hi Niko Suni,

Is it necessary to have two separate computers (workstations) or we can do the debugging with a single computer with two graphics cards? BTW, I have a laptop. What would you recommend for the best setup for game development?

Thank You,
Pankaj

Share this post


Link to post
Share on other sites
The docs say that you have to be using a remote debugging session to run the shader debugger.

Share this post


Link to post
Share on other sites

The docs say that you have to be using a remote debugging session to run the shader debugger.




Yes, I have set up the remote debugging session. In those settings I have set the Remote Command as the executable path on my machine and set the Remote Server Name as my computer's name but no success there. Still I see the "Shader Debugger is not available" in shader list.

Thanks,
Pankaj

Share this post


Link to post
Share on other sites

Hi Niko Suni,

Is it necessary to have two separate computers (workstations) or we can do the debugging with a single computer with two graphics cards? BTW, I have a laptop. What would you recommend for the best setup for game development?

Thank You,
Pankaj



Do you have a optimus enabled card for your laptop. You cannot debug a shader at optimus enabled laptop yet. Requirements are specified here.

Share this post


Link to post
Share on other sites
The live shader debugging does require a whole separate machine, because the video system (and probably more) is completely paused on the machine that is being debugged and therefore you couldn't actually use the debugger program on said machine. For an analogy, consider a debug break on an ordinary desktop program - the only thing that a breaked thread responds to is the debugger itself. PIX debugging is a lot easier because the emulator does not need to do any system-wide locks; it is simply an user-mode software module and other running programs do not care if it freezes.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!