Use WinDbg to debug your Win32 apps and Windows drivers.

Use the Visual Studio debugger to observe the run-time behavior of your app and locate logic errors.

General Debugging Guidance

Create a basic, event-driven debugger that waits for debugging events, causes breakpoint exceptions, and transfers execution control to the debugger.

Add error-handling code to your app to recover gracefully from unexpected errors.

Use an XML manifest to define the events that you want to publish to channel or ETW session to trace or log events for troubleshooting.

Control the handling of software and hardware exceptions and provide support for debuggers, across all programming languages and machines.

Diagnose app hangs and deadlocks by retrieving a wait chain for one or more threads and synchronization objects.

Access and manipulate extended processor feature information and state, including Intel AVX. This capability is for apps that make intensive use of floating-point computation.

Debugging in Visual Studio

Use common debugging techniques for apps that target the common language runtime (CLR).

Use common debugging techniques for native and Win32 apps written in C++.

The Graphics Diagnostics tools help you debug graphics errors in your DirectX game or app.

Was this page helpful?
Additional feedback?
Thank you! We appreciate your feedback.