This is an old revision of the document!
How to debug D3D9
It depends on issue, you need to figure out, where is problem. If it's in mesa, you'll need use NINE_DEBUG variable, to know what D3D9 ST doing. For wine, WINEDEBUG=+d3dadapter9,+d3d9 should be enough.
You maybe also interested in apitrace.
APITrace
- For debugging Windows application you'll need APITrace compiled for Windows
- Windows version is almost always required for replaying
Code: https://github.com/apitrace/apitrace Windows version: http://people.freedesktop.org/~jrfonseca/apitrace/