|
各位看官帮忙看看:
问题:
我在FX文件中设置的断点无效。
我翻了SDK说明文档中的说明:
Put a breakpoint in your shader code
The shader debugger will give you the following message: "The breakpoint will not currently be hit. No executable code is currently loaded at this location."
You need to do one or more of the following:
Enable Direct3D shader debugging from the control panel. See Enable Debug Mode from the Control Panel. The shader will warn you with a message box if this is not enabled.
Build a Visual Studio .NET debug project.
Install the DirectX SDK to get the debug or reference Dlls and the shader debugger.
The shader debugger warns you with a message box if the debug or reference Dlls are not installed.
Launch the debugger from Debug, Direct3D, Start With Direct3D Debugging.
Use a shader/effect compile flag compatible with debugging.
If you don't compile the with D3DXSHADER_DEBUG | D3DXSHADER_SKIPOPTIMIZATION, the debugger will warn you with a message box.
Use a device compatible with debugging.
The debugger warns you if you try to use a HWVP device with a vertex shader, or a hardware abstraction layer (HAL) device with a pixel shader.
我检测了我的设置没有问题,还是不行。
还有一个问题是: 就是在VS2005中,我一点Start With Direct3D Debugging只是编译,并没有启动调试。。。
我只能按F5启动调试。。。。
我机子上安装了SDK8, SDK9(Apirl,2006),SDK9(Apirl,2007)....很奇怪,安装SDK9(Apirl,2006)这个版本才能在VS2005中看到Direct3D这个菜单项。。。
各位看官帮忙看看~~~
[em3] [em3] |
|