How can I set the new Windows Terminal application to be used as debugging console in Visual Studio 2019? By default it launches cmd.exe
when I debug.
As the following image shows, Visual Studio indicates the line on which the breakpoint is set by highlighting it and displaying a red dot in the left margin. Press F5 to run the program in Debug mode. Another way to start debugging is by choosing Debug > Start Debugging from the menu.
To enable the Debug Location toolbar, click in an empty part of the toolbar area and select Debug Location from the dropdown, or select View > Toolbars > Debug Location. Set a breakpoint and start debugging. When the breakpoint is hit, execution pauses and you can see the location in the Debug Location toolbar.
To open the Debug Console, use the Debug Console action at the top of the Debug pane or use the View: Debug Console command (Ctrl+Shift+Y). Expressions are evaluated after you press Enter and the Debug Console REPL shows suggestions as you type.
To add to @Bravo's answer, I also tried searching the Windows registry for variants of "cmd", "cmd.exe" and so on in areas of the registry dedicated to Visual Studio, and couldn't seem to find anything.
A search of *.config, *.xml, *.json in Visual Studio related directories didn't seem to yield anything useful either.
For now, I've requested this feature in the Developer Community. If it makes sense to you, you might consider voting on that feature.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With