Debugging 在Windows Server 2008 R2标准中启用内核调试

Debugging 在Windows Server 2008 R2标准中启用内核调试,debugging,windbg,windows-server-2008-r2,Debugging,Windbg,Windows Server 2008 R2,我正在尝试在Windows Server 2008 R2标准(在Windows Server 2012 R2上以Hyper-V运行)中启用内核调试: 但当我在WinDbg中运行时: 文件->内核调试->本地->确定 我看到留言框: --------------------------- WinDbg:6.12.0002.633 AMD64 --------------------------- The system does not support local kernel debugging

我正在尝试在Windows Server 2008 R2标准(在Windows Server 2012 R2上以Hyper-V运行)中启用内核调试:

但当我在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

基本上你不能在本地调试内核。您需要两台单独的计算机(或vm来宾+主机)进行调试。

如声明所述,这只适用于Windows XP。
对于本地内核调试,我总是使用。

要调试本地内核,必须发出此命令并重新启动

bcdedit -debug on

重新启动后,打开选中的生成环境非自由生成并启动windbg

如果不可能,“内核调试”中的“本地”选项卡将不存在:)在Windows Server 2012上我成功了:内核调试->本地+。服务器tcp:Port这不是经典的调试,您只能查看km内存并读取值:“通常,您不能使用任何导致目标计算机停止的命令,即使是暂时停止,因为您无法恢复操作。”在Windows 7上,我可以通过运行“bcdedit-debug On”然后重新启动计算机来进行本地内核调试。我使用的是x64版本的Windows,它仅在使用WinDbg(x64)时才起作用。什么是”open Check build environment NOT free build“”?我想我们每天使用的Windows版本都是免费版本。Check build未经编译器优化,它们可以与私有PDB中的私有令牌一起使用,而私有PDB通常对我们不可用。
bcdedit -debug on