Это мой файл launch.json:
Код: Выделить всё
{
"version": "0.2.0",
"configurations": [
{
"name": "C++ Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/a.exe",
"args": [
"
Подробнее здесь: [url]https://stackoverflow.com/questions/49834762/how-can-i-pass-a-file-into-my-program-when-debugging-it-with-vs-code[/url]
Мобильная версия