Olvasás angol nyelven Szerkesztés

Megosztás a következőn keresztül:


Debugging a Windows Driver

For general information about debugging drivers, see Getting Started with Windows Debugging.

Inflight Trace Recorder

Starting in Windows 10, you can build your KMDF or UMDF driver binary so that it gets additional driver debugging information through the Inflight Trace Recorder. Windows Drivers can take advantage of this feature.

In addition, if you used the Visual Studio KMDF template, your driver uses Windows software trace preprocessor (WPP) to write trace messages. Your driver binary is an ETW provider with a provider GUID.

To send a trace message from your driver binary, use this code:

C++
TraceEvents(TRACE_LEVEL_INFORMATION, TRACE_DRIVER, "%!FUNC! Entry");

You can access the ETW logs using Tracelog by using !wmitrace in a debugger session.