如何使用新的 Windows 终端作为 Visual Studio 调试控制台
How to use the new Windows Terminal as Visual Studio debugging console
如何将新的 Windows 终端应用程序设置为在 Visual Studio 2019 中用作调试控制台?
默认情况下,它会在我调试时启动 cmd.exe
。
目前暂不支持,见github问题Change Windows OS to support default terminal [defterm] · Issue #492 · microsoft/terminal
但也许你可以尝试下面,找到Windows Terminal
的可执行文件,即wt.exe
或wtd.exe
并记录path
,然后在VS的configs中找到使用 path
而不是 cmd.exe
.
希望对您有所帮助!
为了补充@Bravo 的回答,我还尝试在 Windows 注册表中搜索“cmd”、“cmd.exe”等注册表专用于 [=18] 的变体=],似乎找不到任何东西。
在 Visual Studio 相关目录中搜索 *.config、*.xml、*.json 似乎也没有找到任何有用的信息。
目前,I've requested this feature in the Developer Community。如果对您有意义,您可以考虑对该功能进行投票。
您也可以 运行 windows 终端,在其中启动控制台应用程序,将 VS 的调试器附加到 windows 终端上的控制台应用程序。
有用的链接:
在 release of windows terminal 1.12 与 Windows 11(或 Windows Insider Program Dev Channel)结合使用后,现在可以设置默认终端并指向 Windows 终端.这样做之后,Visual Studio 调试控制台在 visual studio 中调试控制台应用程序时托管在 windows 终端中(在 vs2022 中测试)!
如何将新的 Windows 终端应用程序设置为在 Visual Studio 2019 中用作调试控制台?
默认情况下,它会在我调试时启动 cmd.exe
。
目前暂不支持,见github问题Change Windows OS to support default terminal [defterm] · Issue #492 · microsoft/terminal
但也许你可以尝试下面,找到Windows Terminal
的可执行文件,即wt.exe
或wtd.exe
并记录path
,然后在VS的configs中找到使用 path
而不是 cmd.exe
.
希望对您有所帮助!
为了补充@Bravo 的回答,我还尝试在 Windows 注册表中搜索“cmd”、“cmd.exe”等注册表专用于 [=18] 的变体=],似乎找不到任何东西。
在 Visual Studio 相关目录中搜索 *.config、*.xml、*.json 似乎也没有找到任何有用的信息。
目前,I've requested this feature in the Developer Community。如果对您有意义,您可以考虑对该功能进行投票。
您也可以 运行 windows 终端,在其中启动控制台应用程序,将 VS 的调试器附加到 windows 终端上的控制台应用程序。
有用的链接:
在 release of windows terminal 1.12 与 Windows 11(或 Windows Insider Program Dev Channel)结合使用后,现在可以设置默认终端并指向 Windows 终端.这样做之后,Visual Studio 调试控制台在 visual studio 中调试控制台应用程序时托管在 windows 终端中(在 vs2022 中测试)!