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

VS2019 remote debugging not work from VMware Workstation virtual serial port named pipe

主机: 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 Workstation 成功了!!! 当我添加新串口时,它默认命名为Serial Port 2,即com2。 所以我有一些命令行:

bcdedit /dbgsettings serial debugport:2 baudrate:115200

并且使用 Visual Studio,配置的目标端口:com2.

问题已解决!!