kefren

Hi,

I am trying to debug my project using shader debugging in PIX ( yes I compiled the HLSL effect file with debugging support ), and getting this error message. Sometimes it can debug, sometimes it cant, I couldn't find what is wrong. VS2003 uses the DXDebuggingService, when I try to debug the project, PIX can stop the service (I can do it by hand also) so the problem is not related to this service. I have tried both the VS2003 and VS2005 compiled projects. No luck

Any idea

Regards,
Ahmet Bilgili


Re: XNA Framework PIX and "An error occured while preparing to debug the shader"

manders

Hi,

When you say "sometimes it can debug, sometimes it can't," is it the same app that sometimes works and sometimes doesn't Or do some apps always work and some always fail Can you debug shaders from the DXSDK samples Do you have better success with pixel shaders or vertex shaders

Also, make sure you're using the December 2006 version of PIX -- it has more reliable shader debugging than previous versions.

Thanks,

-Mike





Re: XNA Framework PIX and "An error occured while preparing to debug the shader"

kefren

Hi,

I meant my application works ("at least for single frame debugging") , but the PIX sometimes can debug the same shaders, and sometimes cant debug the same shaders, but most often in raises the error in the topic. I am using December version of DXSDK, and from control panel I have set it to use the debug versions of DirectX libraries.

I have tried with the DXSDKs "DX9 Shadow Volume" example, but PIX doesnt seem to be working on debugging the shaders, I have tried in the mesh debugging part , pre-post vertex shaders. When I click debug this shader it raises the error. I have compiled the Shadow Volume project with DEBUG_PS and DEBUG_VS options uncommented with the reference device.

While debugging with PIX, I can see the HLSL source code when I look at the corresponding VertexShader calls. But shader is not debuggable.

Maybe I am missing something. I have tried debugging my own project with both the home machine and work machine. Both has the same error. I do not think it is because of the drivers because I use the reference devices.

Regards,
Ahmet




Re: XNA Framework PIX and "An error occured while preparing to debug the shader"

Jon Watte

Do you have a shader model 2.0 capable graphics card
Are you running the debug version of the DirectX runtime
Have you enabled shader debugging in the DirectX control panel (found in the DirectX Utilities folder)






Re: XNA Framework PIX and "An error occured while preparing to debug the shader"

manders

Hi Ahmet,

I've just sent you an email...please reply here if you don't see my email in 24 hours.

-Mike





Re: XNA Framework PIX and "An error occured while preparing to debug the shader"

kefren

Hi,

> Do you have a shader model 2.0 capable graphics card

I have a Nvidia 6600GT with Shader3.0 support, but I have tried with both REF and HAL devices.

> Are you running the debug version of the DirectX runtime

Yes, I have set it from the control panel.

> Have you enabled shader debugging in the DirectX control panel (found in the DirectX Utilities folder)

Yes I also set that, no luck

I can debug the shader in VS 2003 using Visual Studio DirectX Extensions.

Regards,
Ahmet






Re: XNA Framework PIX and "An error occured while preparing to debug the shader"

Keith Newton

I ran into a problem with debugging shaders in PIX when the program was run with software vertex processing and the reference rasterizer. Could it be that you're having the same problem If so there won't be a fix for it until the DX SDK release after the february SDK and you'll need to use hardware vertex processing or maybe try mixed vertex processing.




Re: XNA Framework PIX and "An error occured while preparing to debug the shader"

Chris Cottrell

Just to add my 2 cents. I am having the same problem, but it ALWAYS happens, not just sometimes. At first I thought it was caused by the VS2005 security update from Jan. 10th, but I uninstalled that and the problem persists.

Also, I was successfully debugging as recently as early january using the August SDK. The problem suddenly began occurring so I installed the October SDK. Neither works.

Any help would be greatly appreciated.


Chris Cottrell
Icarus Studios