Enable KdPrint when Debugging Windows

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s