VSCode-使用集成终端而不是调试控制台进行调试/启动 [英] VSCode - Debuging/Launching using integrated Terminal instead Debug Console

查看:31
本文介绍了VSCode-使用集成终端而不是调试控制台进行调试/启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用集成终端来调试/启动代码,而不是使用Visual Studio Code中的调试控制台?

Is there a way to use integrated Terminal for debugging/launching code instead of Debug Console in Visual Studio Code?

当前,我正在使用外部控制台窗口来调试VSCode中的代码,但是在全屏调试时,由于它进入了后台,因此并不是很方便.调试控制台的问题在于它不允许输入,因此如果我的程序需要任何输入并且我不使用外部控制台,则会卡住我的程序.

Currently, I'm using external console window for debugging code in VSCode, but it's not very convenient while debugging on full screen since it goes into background. The problem with the Debug Console is that it does not allow input, so my program is stuck if it requires any input and I don't use the external console.

或者,是否可以将输入信息输入调试控制台?

Or, is there a way to feed intput into Debug Console?

我正在尝试使用Microsoft的C ++插件调试C ++代码.这是我的 launch.json :

I'm trying to debug C++ code using Microsofts C++ plugin. Here is my launch.json:

{
        "name": "Debug",
        "type": "cppvsdbg",
        "request": "launch",
        "program": "${workspaceFolder}/bin/Debug/HelloWorld.exe",
        "args": [],
        "preLaunchTask": "Build",
        "stopAtEntry": false,
        "cwd": "${workspaceFolder}",
        "environment": [],
        "console": "integratedTerminal"
}

推荐答案

使用以下选项调试C ++文件时,我没有获得任何外部控制台:"externalConsole":错误 launch.json 文件的调试器配置中.

I managed to get no external console while debugging C++ files with the following option: "externalConsole": false within the debugger configuration in the launch.json file.

这篇关于VSCode-使用集成终端而不是调试控制台进行调试/启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆