调试托管代码时,您可能会收到下面的错误信息:
Debugging isn't possible because a kernel debugger is enabled on the system
当您试图在以调试模式启动的 Windows NT、Windows 2000 或 Windows XP 系统上调试托管代码时,将出现该信息。解决方案
修复此问题 在系统驱动器(通常为 C:\)上查找 boot.ini。boot.ini 可能是隐藏和只读的,因此您需要使用下列命令才能查看它: 
dir /ASH
用记事本打开 boot.ini 并移除下列选项: 
/debug
/debugport
/baudrate
重新启动计算机。 
重新启动 Visual Studio .NET 并进行调试。