This is a short, but useful information when developing Driver for Microsoft Windows. Debug log isn’t enable by default on Windows. You need to modify Windows Registry to enable it.
Open the Registry Editor (regedit). Go to the registry key presented below:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\
Create a new registry key with name Debug Print Filter
. Inside it, create a DWORD
entry called DEFAULT
with value 0x8
. Don’t confuse with (Default)
entry.
Or your can run the command below in your cmd to create the entry:
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter" /v DEFAULT /t REG_DWORD /d 0x8
Restart the machine. Now, KdPring and DbgPrint will appear in your WinDbg session.
Source: OSR, CodeMachine.