vscode配置

launch.json

{
    // 使用 IntelliSense 了解相关属性。 
    // 悬停以查看现有属性的描述。
    // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
 
        {
            "name": "test", //名称随便取
            "type": "cppdbg", //调试类型
            "request": "launch", //请求配置类型
            "program": "${workspaceFolder}/a.out", //可执行程序完整路径(包含程序名称)
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}", //可执行程序完整路径(不包含程序名称)
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ],
            "preLaunchTask": "test Debug", //task 任务名称(与tasks.json中名称一致)
            "miDebuggerPath": "/usr/bin/gdb", //gdb完整路径

            "sourceFileMap": 
            {
                "/build/glibc-e6zv40": "/usr/src/"
            }
        }
    ]
}

task.json

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "test", //认为名称
            "type": "shell", //类型
            "command": "make release", //命令
            "problemMatcher": []
        },
        {
            "label": "test Debug",
            "type": "shell",
            "command": "make",
            "problemMatcher": []
        }
    ]
}

 

vscode配置

上一篇:golang 加载并运行tensorflow模型


下一篇:Quartz的使用