Debugging Tools for Windows supports local kernel debugging. This is kernel-mode debugging on a single computer. In other words, the debugger runs on the same computer that is being debugged. With local debugging you can examine state, but not break into kernel mode processes that would cause the OS to stop running.
The local bcdedit option is available in Windows 8.0 and Windows Server 2012 and later.
Setting Up Local Kernel-Mode Debugging
- Open a Command Prompt window as Administrator. Enter bcdedit /debug on
- If the computer is not already configured as the target of a debug transport, enter bcdedit /dbgsettings local
- Reboot the computer.
Starting the Debugging Session
Open WinDbg as Administrator. On the File menu, choose Kernel Debug. In the Kernel Debugging dialog box, open the Local tab. Click OK.
You can also start a session with WinDbg by opening a Command Prompt window as Administrator and entering the following command:
Open a Command Prompt window as Administrator, and enter the following command: