Debugging DX8.1
How do I go about setting up DX and my MSVC++ compiler to send and recieve debug information and then how do I retrieve this info?
TIA
~Vednayan
"Never have a battle of wits with an unarmed man. He will surely attempt to disarm you as well"~Vendayan
Debug info alone won''t do you much good. You need a debugger to make sense out of it. So unless you are writing a debugger (which I doubt) you don''t need to retrieve debug info from your build.
To enable debug info, go to project settings-c++-general and select appropriate item from debug info combobox. Then, in project settings-link-general check generate debug info box.
Once you''ve done that, you can set breakpoints with F9 and run your program under the debugger with F5. Some other key combinations that you might find useful are Ctrl-F10 to run to current statement, F10 to step over and F11 to step into, Shift-F11 to step out of a function.
If your DX app is fullscreen, you''ll have to make it run windowed unless you have a dual monitor or remote debugging setup.
To enable debug info, go to project settings-c++-general and select appropriate item from debug info combobox. Then, in project settings-link-general check generate debug info box.
Once you''ve done that, you can set breakpoints with F9 and run your program under the debugger with F5. Some other key combinations that you might find useful are Ctrl-F10 to run to current statement, F10 to step over and F11 to step into, Shift-F11 to step out of a function.
If your DX app is fullscreen, you''ll have to make it run windowed unless you have a dual monitor or remote debugging setup.
---visit #directxdev on afternet <- not just for directx, despite the name
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement