Visual Studio Code не запускает программу во внешнем терминале c++ на mac OS
Пытаюсь запустить внешний терминал, чтобы отладить программу с вводом из стандартного потока, т.к. vs code не умеет это делать. Но почему-то мне открывается терминал и ничего не происходит дальше, только строка приглашения и всё. launch.json:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "g++ - Build and debug active file",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "lldb",
"preLaunchTask": "g++ build active file",
}
]
}
task.json:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "g++ build active file",
"command": "/usr/bin/g++",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}",
"-std=c++11"
],
"options": {
"cwd": "/usr/bin"
},
"problemMatcher": [
"$gcc"
],
}
]
}