Answer the question
In order to leave comments, you need to log in
How to choose cmd instead of PS for debugging in VS Code?
There is an extension ms-vscode.cpptools, I write a cpp file
#include <iostream>
int main()
{
std::cout << "helloworld" << std::endl;
}
{
// Используйте IntelliSense, чтобы узнать о возможных атрибутах.
// Наведите указатель мыши, чтобы просмотреть описания существующих атрибутов.
// Для получения дополнительной информации посетите: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "g++.exe - Сборка и отладка активного файла",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:\\msys64\\mingw64\\bin\\gdb.exe",
"setupCommands": [
{
"description": "Включить автоматическое форматирование для gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: g++.exe сборка активного файла"
}
]
}
Answer the question
In order to leave comments, you need to log in
Tip: look for answers and information on the foreign Internet, there are answers ....
Here's an example. If I understood everything correctly, then this is exactly the solution to your problem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question