add vscode debug launch file, remove .vscode from gitignore

This commit is contained in:
liqiang 2022-11-18 11:07:21 +08:00
parent 1bcd41beb5
commit 83931bca2d
2 changed files with 43 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,6 +1,5 @@
bin/ bin/
lib/ lib/
build/ build/
.vscode/
.idea/ .idea/
dataset/ dataset/

43
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,43 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Windows 启动",
"type": "cppvsdbg",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/bin/KF-GINS",
"args": ["./dataset/kf-gins.yaml"],
"stopAtEntry": true,
"environment": [],
"console": "integratedTerminal"
},
{
"name": "Linux gdb 启动",
"type": "cppdbg",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/bin/KF-GINS",
"args": ["./dataset/kf-gins.yaml"],
"stopAtEntry": true,
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "将反汇编风格设置为 Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}