【发布时间】:2014-10-01 20:16:32
【问题描述】:
我正在尝试在 Windows Server 2008 R2 Standard 中启用内核调试(在 Windows Server 2012 R2 上的 Hyper-V 中运行):
bcdedit /dbgsettings 1394 channel:32
bcdedit /debug ON
shutdown /r /f /t 0
但是当我在 WinDbg 中运行时:
文件 -> 内核调试 -> 本地 -> 确定
我看到了消息框:
--------------------------- WinDbg:6.12.0002.633 AMD64
--------------------------- The system does not support local kernel debugging.
Local kernel debugging requires Windows XP, Administrative
privileges, and is not supported by WOW64.
Only a single local kernel debugging session can run at a time.
Local kernel debugging is disabled by default in Windows Vista, you must run 'bcdedit -debug on' and reboot to enable it.
--------------------------- OK ---------------------------
bcdedit 的输出:
Windows Boot Manager
--------------------
identifier {bootmgr}
device partition=\Device\HarddiskVolume1
description Windows Boot Manager
locale en-US
inherit {globalsettings}
default {current}
resumeobject {22afa782-ce1f-11e2-824a-de42722e0fff
displayorder {current}
toolsdisplayorder {memdiag}
timeout 30
Windows Boot Loader
-------------------
identifier {current}
device partition=C:
path \Windows\system32\winload.exe
description Windows Server 2008 R2
locale en-US
inherit {bootloadersettings}
recoverysequence {22afa784-ce1f-11e2-824a-de42722e0fff
recoveryenabled Yes
testsigning Yes
osdevice partition=C:
systemroot \Windows
resumeobject {22afa782-ce1f-11e2-824a-de42722e0fff
nx OptOut
debug Yes
【问题讨论】:
-
在 Windows 7 上,我可以通过运行“bcdedit -debug on”然后重新启动机器来进行本地内核调试。我使用的是 x64 版本的 Windows,它仅在使用 WinDbg (x64) 时有效。
标签: debugging windbg windows-server-2008-r2