Windows driver debugging #1326
Replies: 3 comments
-
I had more luck with IRPMon. (If you install it, uncheck the Server install options unless you want to do remote monitoring) |
Beta Was this translation helpful? Give feedback.
-
@dontech |
Beta Was this translation helpful? Give feedback.
-
I am mainly using the debug version of libusb and libusbK and then DebugView to get the debug log. I have never tried to debug a Windows driver myself. The official tool is WinDBG. |
Beta Was this translation helpful? Give feedback.
-
Microsoft offers a tool to check Windows drivers "Driver Verifier". Especially I/O verification and IRP logging sounds interesting:
I have tried this on Windows 10 Pro (in a CMD window with administrative rights):
verifier /volatile /flags 0x410 /adddriver libusb0.sys
Then exercised the driver by running xusb on a device that uses libusb0.sys, and replugging the device.
After this, I see the load/unload count increasing, but no other relevant statistics or errors.
Details (added another flag in this case)
C:\WINDOWS\system32>verifier /queryTime Stamp: 10/15/2023 19:44:14.958
Verifier Flags: 0x00080410
Standard Flags:
Additional Flags:
Verifier Statistics Summary
Driver Verification List
dc2wmiparser.exe
mentions VerifierIrpDetails but doesn't show any log entries.Connected with
DC2WMIParser - Calling VerifierIrpDetails.
DC2WMIParser - VerifierIrpDetails the call to SysAllocString worked.
DC2WMIParser - VerifierIrpDetails the call to SysAllocString worked for MSVerifierIrpLogInformation.
DC2WMIParser - VerifierIrpDetails the call to pIWbemServices->CreateInstanceEnum return HRESULT:=0.
DC2WMIParser - VerifierIrpDetails the call to pIWbemServices->CreateInstanceEnum worked and hr:=WBEM_NO_ERROR.
DC2WMIParser - VerifierIrpDetails the call to pEnum->Next returned hresult:=1.
DC2WMIParser - The call to VerifierIrpDetails worked and returned status:=0.
(I have also tried without /volatile and rebooting the computer instead.)
It seems @sonatique shares my experience.
Anyone having a clue about this? @dontech, have you used verifier.exe on libusb0.sys?
Beta Was this translation helpful? Give feedback.
All reactions