Skip to content

Commit db437c7

Browse files
author
masira
committed
add gdb c++ example
1 parent c6983ac commit db437c7

File tree

3 files changed

+61
-0
lines changed

3 files changed

+61
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "cppdbg",
6+
"request": "launch",
7+
"name": "GDB",
8+
"cwd": "${workspaceFolder}",
9+
"program": "${workspaceFolder}/build/skanjet_demo",
10+
"MIMode": "gdb",
11+
},
12+
{
13+
"name": "(lldb) Debug binary_tree",
14+
"type": "cppdbg",
15+
"request": "launch",
16+
"preLaunchTask": "build binary_tree", // make sure latest build is compiled before debugging
17+
"program": "${workspaceFolder}/skanjet_demo",
18+
"args": [],
19+
"stopAtEntry": false,
20+
"cwd": "${workspaceFolder}",
21+
"environment": [],
22+
"externalConsole": false,
23+
"MIMode": "gdb",
24+
"miDebuggerPath": "/usr/bin/gdb",
25+
},
26+
]
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"files.associations": {
3+
"__config": "cpp",
4+
"__nullptr": "cpp",
5+
"cstddef": "cpp",
6+
"exception": "cpp",
7+
"initializer_list": "cpp",
8+
"new": "cpp",
9+
"stdexcept": "cpp",
10+
"type_traits": "cpp",
11+
"typeinfo": "cpp",
12+
"algorithm": "cpp",
13+
"memory": "cpp"
14+
},
15+
"editor.rulers": [80],
16+
"editor.tabSize": 2,
17+
"C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: Google, IndentWidth: 2 }"
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "build binary_tree",
8+
"type": "shell",
9+
"command": "./build.sh",
10+
"group": {
11+
"kind": "build",
12+
"isDefault": true
13+
}
14+
}
15+
]
16+
}

0 commit comments

Comments
 (0)