简体   繁体   English

vscode launch.json 配置

[英]vscode launch.json configuration

I have an issue with launch a cpp project file with vscode, here is my error launch program {workspace domain}\\build\\Debug\\outDebug does not exist.我在使用 vscode 启动 cpp 项目文件时遇到问题,这是我的错误launch program {workspace domain}\\build\\Debug\\outDebug不存在。 and that's true, but i want to know can I add a parameter to my launch.json file or edit it, to work like : if a there is no directory to put the build file into it, so make it!这是真的,但我想知道我可以向我的launch.json文件添加一个参数或编辑它,像这样工作:如果没有目录可以将构建文件放入其中,那么制作它! is it possible to do that ?有可能这样做吗?

here is my launch.json file source这是我的 launch.json 文件源

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "C/C++ Runner: Debug Session",
      "type": "cppdbg",
      "request": "launch",
      "args": [],
      "stopAtEntry": false,
      "cwd": "o:\\Developing\\Projects\\Training\\c++\\School",
      "environment": [],
      "program": "o:\\Developing\\Projects\\Training\\c++\\School\\build\\Debug\\outDebug",
      "internalConsoleOptions": "openOnSessionStart",
      "MIMode": "gdb",
      "miDebuggerPath": "gdb",
      "externalConsole": false,
      "setupCommands": [
        {
          "description": "Enable pretty-printing for gdb",
          "text": "-enable-pretty-printing",
          "ignoreFailures": true
        }
      ]
    }
  ]
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 vscode中的launch.json中不允许使用属性args - Property args is not allowed in launch.json in vscode VSCode tasks.json 和 launch.json for WinExe 依赖于 dll - VSCode tasks.json and launch.json for WinExe dependent on dll 如何在 VSCode 中向 launch.json 添加环境变量 - How do I add environment variables to launch.json in VSCode VSCode Java扩展launch.json设置问题 - VSCode Java Extension launch.json setup problems 如何在 vscode 中设置 launch.json 中的默认 java 配置,以使 vscode 在每次运行应用程序时停止要求我指定主类? - How can I set in vscode a default java configuration in launch.json to make vscode stop asking me to specify a main class every time I run the app? VS Code将launch.json转化为实际命令 - VS Code launch.json into an actual command 在 launch.json 中从 BEGINNING 附加启动命令 - Append launch command from the BEGINNING in launch.json 引用在 launch.json 中定义的 tasks.json 中的变量 - Reference a variabled in tasks.json that was defined in launch.json 参数中带有双引号的 Visual Studio Code launch.json runtimeArgs - Visual Studio Code launch.json runtimeArgs with double quotes in the argument launch.json args字段中的Visual Studio Community 2017空间 - Visual Studio Community 2017 spaces in launch.json args field
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM