VS2019 远程调试无法从 VMware Workstation 虚拟串口命名管道

问题描述

主机:Windows 10 Pro 安装 Visual Studio 2019(包含 WDK)。

虚拟机:Windows 8.1 Pro。

我正在尝试使用 Visual Studio 2019 从虚拟机调试驱动程序(微型过滤器),所有信息都将发送到主机(真机)。

VirtualBox 一切正常,但 VMware Workstation 完全不工作。

这是使用 VirtualBox 时的日志。

    Starting New Debugger Session         
-----------------------------------------------------------------------
-----------------------------------------------------------------------

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

V-HUY\v-huy (npipe WinIDE_01D7664044A98D54) connected at Mon Jun 21 08:53:45 2021

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

Waiting for pipe \\.\pipe\newpipe
Waiting to reconnect...
Connected to Windows 8.1 9600 x64 target at (Mon Jun 21 09:10:42.992 2021 (UTC + 7:00)),ptr64 TRUE
Kernel Debugger connection established.
Symbol search path is: srv*
Executable search path is: 
Windows 8.1 Kernel Version 9600 MP (1 procs) Free x64
Built by: 9600.17415.amd64fre.winblue_r4.141028-1500
Machine Name:
Kernel base = 0xfffff800`57a81000 PsLoadedModuleList = 0xfffff800`57d5a250
System Uptime: 0 days 0:00:00.038
KDTARGET: Refreshing KD connection

VMware Workstation 失败,它只是停在线路上

Waiting to reconnect...

我已经设置了 VMware Workstation 虚拟串口,但不能用作 VirtualBox

Named pipe> \\.\pipe\newpipe
This end is the server.
The other end is an application.
Ticked Yield CPU on roll.

VMware 指南:https://docs.vmware.com/en/VMware-Workstation-Player-for-Windows/16.0/com.vmware.player.win.using.doc/GUID-70C25BED-6791-4AF2-B530-8030E39ED749.html#:~:text=If%20you%20selected%20Output%20to%20named%20pipe%2C%20configure%20the%20named%20pipe

解决方法

更新:Vmware 工作站运行正常!!! 当我添加新的串口时,默认命名为Serial Port 2,意思是com2。 所以我有一些命令行:

bcdedit /dbgsettings serial debugport:2 baudrate:115200

使用 Visual Studio,配置目标端口:com2

问题已解决!!

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...