VS2019 + VMware双机内核调试驱动
准备前提:
Visual Studio下载
https://visualstudio.microsoft.com/zh-hans/downloads/
Windows SDK
https://developer.microsoft.com/zh-cn/windows/downloads/sdk-archive/
下载和安装 Windows 10 WDK
https://docs.microsoft.com/zh-cn/windows-hardware/drivers/other-wdk-downloads
VS需要用到组件:
虚拟机下载:
虚拟镜像下载:
(最好同本机系统版本一致)
https://msdn.itellyou.cn/
配置:
虚拟机配置:
虚拟机=》设置=》硬件=》移除打印机(打印机会占用端口1)
添加串行端口=》使用命名管道(\.\pipe\com_1)
虚拟机系统中安装WDK10调试驱动:
把当前系统Windows 10 WDK安装的目录下
WDK Test Target Setup x64-x64_en-us.msi拷贝到虚拟机安装(x64因情况而定)
C:\Program Files (x86)\Windows Kits\10\Remote\x64\WDK Test Target Setup x64-x64_en-us.msi
cmd命令(管理员):
1 |
|
VS2019配置:
扩展=》Driver=》test=》Configure Devices=》Add New Device
1 |
|
下一步
1 |
|
下一步 =》完成(Status: Configured for driver testing)
调试:
VS2019调试=》附加到进程
1 |
|
选择附加(显示Waiting to reconnect…)
=》点击全部中断(等待中断)
=》点击继续(重连完成,可调试驱动)
VS2019 + VMware双机内核调试驱动
https://www.inktea.eu.org/2022/8f62.html