VS2019驱动调试 VMware® Workstation 16 Pro 无法调试

thinp 2021-08-05 18:09:16

遇到一个问题,VS2019用网络形式连接VMWare

VMware® Workstation 16 Pro

目标机操作系统:Win10 21H1 企业版 (与主机一样)

写好驱动,F5启动调试,以下是输出日志:日志输出完后,停顿几秒,直接退出了(挂不上调试器),再连接就连不上VMWare了,直接部署错误,有谁遇到过这问题,如何解决?

Microsoft (R) Windows Debugger Version 10.0.19041.685 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.

Using NET for debugging
Opened WinSock 2.0
[14:40:08:397]: Remove Existing Remote Package
[14:40:08:948]: Task "Remove Existing Remote Package" completed successfully
[14:40:08:978]: Copy Driver Package
Waiting to reconnect...
[14:40:09:475]: Task "Copy Driver Package" completed successfully
[14:40:09:486]: Driver Removal
[14:40:09:487]: Removing any existing files from test execution folder.
[14:40:09:502]: Copying required files for "Driver Removal".

$KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverRemoval'" /p:"InfFile=" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"CertificateFile=test.cer" /p:"PackageGuid=x64" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Removal_00131.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
Connected to target 192.168.71.128 on port 50448 on local IP 192.168.71.1.
You can get the target MAC address by running .kdtargetmac command.
[14:40:11:255]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
[14:40:11:257]: Task "Driver Removal" completed successfully
[14:40:11:712]: Driver Preparation
[14:40:11:713]: Removing any existing files from test execution folder.
[14:40:11:734]: Copying required files for "Driver Preparation".

$KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverPreparation'" /p:"InfFile=" /p:"ImportDriver=1" /p:"RemoveDriver=1" /p:"CertificateFile=test.cer" /p:"PackageGuid=x64" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Preparation_00131.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.

[14:40:13:414]: Result Summary: Total=1, Passed=0, Failed=1, Blocked=0, Warned=0, Skipped=0
[14:40:13:416]: ERROR: Task "Driver Preparation" failed to complete successfully. Look at the logs in the driver test group explorer for more details on the failure.
[14:40:13:762]: Driver Post Install Actions
[14:40:13:768]: Removing any existing files from test execution folder.
[14:40:13:785]: Copying required files for "Driver Post Install Actions".

$KitRoot$\Testing\Runtimes\TAEF\te.exe "%SystemDrive%\DriverTest\Run\DriverTestTasks.dll" /select:"@Name='DriverTestTasks::_DriverPostInstall'" /rebootStateFile:%SystemDrive%\DriverTest\Run\DriverTestReboot.xml /enableWttLogging /wttDeviceString:$LogFile:file="%SystemDrive%\DriverTest\Run\Driver_Post_Install_Actions_00131.wtl",writemode=append,encoding=unicode,nofscache=true,EnableLvl="WexStartTest|WexEndTest|WexXml|WexProperty|WexCreateContext|WexCloseContext|*" /runas:Elevated
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.

[14:40:15:474]: Result Summary: Total=1, Passed=1, Failed=0, Blocked=0, Warned=0, Skipped=0
[14:40:15:475]: Task "Driver Post Install Actions" completed successfully
Driver Deployment Task Failed: Driver Preparation

 

...全文
8561 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复

建议使用附加进程的方式去进行双机调试,测试了一下可以正常debug

  • 打赏
  • 举报
回复

同问,不知道博主是否找到解决方案了?

thinp 2021-12-23
  • 举报
回复
@其实不会写代码 没有找到解决方案,不知道是什么问题引起的,时好时坏,只能Attach,好在有快捷键,与按F5差不多,效率基本相同

21,620

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧