一、安装插件
二、连接服务器
三、调试darknet工程
{
"version": "2.0.0",
"options": {
"cwd": "${workspaceFolder}"
},
"tasks": [
{
"label": "clean",
"type": "shell",
"command":"make",
"args": ["clean"]
},
{
"label": "Build",
"type": "shell",
"dependsOn":"clean",
"command": "make",
"args": []
}
]
}
tasks.json文件内容固定,无需修改
{
"version": "0.2.0",
"configurations": [
{
"name": "C/C++: gcc-10 生成和调试活动文件",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/host/darknet",
"args": ["detector",
"test",
"cfg/coco.data",
"cfg/yolov4-tiny.cfg",
"yolov4-tiny.weights",
"data/person.jpg"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/host",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
],
"preLaunchTask": "Build",
"miDebuggerPath": "/usr/bin/gdb"
}
]
}
其中的arg参数为项目编译后运行的命令