.vscode目录下,
launch.json内容,
{"version": "0.2.0","configurations": [{"name": "cc","type": "cppdbg","request": "launch","preLaunchTask": "make","program": "/home/fyw/bin/run_cloud_aggregation","args": ["--output_cloud_res=/home/fyw/download/junction_17629/res","--inputjson=/home/fyw/download/junction_17629/in.json","--deploy_path=/opt/work/csm_workspace/csm_alg_sched/../exec/output/model/"],"stopAtEntry": false,"cwd": "/home/fyw","externalConsole": false,"setupCommands": [{"description": "Enable pretty-printing for gdb","text": "-enable-pretty-printing","ignoreFailures": true}],"linux": {"MIMode": "gdb"},"miDebuggerPath": "/usr/bin/gdb"}]
}
各字段介绍如下:
- program表示可执行文件。
- args表示传入参数。
- cwd表示当前工作目录。
- miDebuggerPath表示调试器目录。
tasks.json内容,
{// See https://go.microsoft.com/fwlink/?LinkId=733558// for the documentation about the tasks.json format"version": "2.0.0","tasks": [{"label": "make","type": "shell","command": "sh /home/fyw/run.sh"}]
}