Skip to content

Commit 458ea46

Browse files
committed
Update C++ debugger config
1 parent 60761fe commit 458ea46

File tree

9 files changed

+128
-503
lines changed

9 files changed

+128
-503
lines changed

.vscode/c_cpp_properties.json

Lines changed: 53 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,55 @@
11
{
2-
"configurations": [
3-
{
4-
"name": "Mac",
5-
"defines": [],
6-
"cStandard": "c11",
7-
"cppStandard": "c++17",
8-
"intelliSenseMode": "${default}",
9-
"macFrameworkPath": [
10-
"/System/Library/Frameworks",
11-
"/Library/Frameworks"
12-
],
13-
"includePath": [
14-
"${workspaceRoot}",
15-
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1",
16-
"/usr/local/include",
17-
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.0/include",
18-
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include"
19-
],
20-
"compilerPath": "/usr/bin/clang"
21-
},
22-
{
23-
"name": "Linux",
24-
"defines": [],
25-
"cStandard": "c11",
26-
"cppStandard": "c++17",
27-
"intelliSenseMode": "clang-x64",
28-
"includePath": [
29-
"${workspaceRoot}",
30-
"/usr/include/c++/4.9",
31-
"/usr/include/x86_64-linux-gnu/c++/4.9",
32-
"/usr/lib/gcc/x86_64-linux-gnu/4.9/include",
33-
"/usr/include",
34-
"/usr/local/include"
35-
]
36-
},
37-
{
38-
"name": "Win32",
39-
"defines": [
40-
"_DEBUG",
41-
"UNICODE"
42-
],
43-
"cStandard": "c11",
44-
"cppStandard": "c++17",
45-
"intelliSenseMode": "msvc-x64",
46-
"includePath": [
47-
"${workspaceRoot}",
48-
"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include"
49-
]
50-
}
51-
],
52-
"version": 4
2+
"configurations": [
3+
{
4+
"name": "Mac",
5+
"defines": [
6+
"__LITTLE_ENDIAN__"
7+
],
8+
"cStandard": "c11",
9+
"cppStandard": "c++17",
10+
"intelliSenseMode": "${default}",
11+
"macFrameworkPath": [
12+
"/System/Library/Frameworks",
13+
"/Library/Frameworks"
14+
],
15+
"includePath": [
16+
"${workspaceRoot}",
17+
"/usr/local/include",
18+
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1",
19+
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/14.0.0/include",
20+
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include"
21+
],
22+
"compilerPath": "/usr/bin/clang"
23+
},
24+
{
25+
"name": "Linux",
26+
"defines": [],
27+
"cStandard": "c11",
28+
"cppStandard": "c++17",
29+
"intelliSenseMode": "clang-x64",
30+
"includePath": [
31+
"${workspaceRoot}",
32+
"/usr/include/c++/4.9",
33+
"/usr/include/x86_64-linux-gnu/c++/4.9",
34+
"/usr/lib/gcc/x86_64-linux-gnu/4.9/include",
35+
"/usr/include",
36+
"/usr/local/include"
37+
]
38+
},
39+
{
40+
"name": "Win32",
41+
"defines": [
42+
"_DEBUG",
43+
"UNICODE"
44+
],
45+
"cStandard": "c11",
46+
"cppStandard": "c++17",
47+
"intelliSenseMode": "msvc-x64",
48+
"includePath": [
49+
"${workspaceRoot}",
50+
"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/include"
51+
]
52+
}
53+
],
54+
"version": 4
5355
}

.vscode/launch.json

Lines changed: 9 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"name": "Python: Current File",
6-
"type": "python",
7-
"request": "launch",
8-
"program": "${file}",
9-
"console": "integratedTerminal"
10-
},
11-
{
12-
"name": "C++ codelldb",
5+
"name": "C++: Current File",
136
"type": "lldb",
147
"request": "launch",
158
"program": "${workspaceRoot}/bin/cpp/${fileBasenameNoExtension}",
@@ -18,43 +11,6 @@
1811
"cwd": "${workspaceRoot}",
1912
"preLaunchTask": "C++ build"
2013
},
21-
{
22-
"name": "C++",
23-
"type": "cppdbg",
24-
"request": "launch",
25-
"program": "${workspaceRoot}/bin/cpp/${fileBasenameNoExtension}",
26-
"args": [],
27-
"stopAtEntry": false,
28-
"cwd": "${workspaceRoot}",
29-
"environment": [],
30-
"externalConsole": true,
31-
"preLaunchTask": "C++ build",
32-
"launchCompleteCommand": "exec-run",
33-
"osx": {
34-
"MIMode": "lldb",
35-
"miDebuggerPath": "/Applications/Xcode.app/Contents/Developer/usr/bin/lldb-mi"
36-
},
37-
"linux": {
38-
"MIMode": "gdb",
39-
"setupCommands": [
40-
{
41-
"description": "Enable pretty-printing for gdb",
42-
"text": "-enable-pretty-printing",
43-
"ignoreFailures": true,
44-
}
45-
]
46-
},
47-
"windows": {
48-
"MIMode": "gdb",
49-
"setupCommands": [
50-
{
51-
"description": "Enable pretty-printing for gdb",
52-
"text": "-enable-pretty-printing",
53-
"ignoreFailures": true
54-
}
55-
]
56-
}
57-
},
5814
{
5915
"type": "java",
6016
"name": "Java",
@@ -68,6 +24,13 @@
6824
"program": "${file}",
6925
"cwd": "${workspaceRoot}/javascript",
7026
"env": {}
71-
}
27+
},
28+
{
29+
"name": "Python: Current File",
30+
"type": "python",
31+
"request": "launch",
32+
"program": "${file}",
33+
"console": "integratedTerminal"
34+
},
7235
]
7336
}

.vscode/settings.json

Lines changed: 6 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,114 +1,10 @@
11
// Place your settings in this file to overwrite default and user settings.
22
{
33
"python.defaultInterpreterPath": "/Users/anyflow/virtualenv/practice/bin/python3.10",
4-
"python.terminal.activateEnvInCurrentTerminal": true,
5-
"python.terminal.activateEnvironment": true,
6-
"python.formatting.provider": "black",
7-
"python.linting.flake8Enabled": true,
8-
"python.linting.enabled": true,
9-
"C_Cpp.default.cppStandard": "c++17",
10-
"C_Cpp.default.cStandard": "c11",
11-
"C_Cpp.default.intelliSenseMode": "clang-x64",
12-
"C_Cpp.errorSquiggles": "Enabled",
13-
"files.exclude": {
14-
"**/.git": true,
15-
"**/.DS_Store": true,
16-
"**/.classpath": true,
17-
"**/.project": true,
18-
"**/.settings": true,
19-
"**/.factorypath": true
20-
},
21-
"files.associations": {
22-
"*.jsx": "javascript",
23-
".clang-format": "yaml",
24-
"slist": "cpp",
25-
"initializer_list": "cpp",
26-
"chrono": "cpp",
27-
"algorithm": "cpp",
28-
"set": "cpp",
29-
"unordered_map": "cpp",
30-
"*.ipp": "cpp",
31-
"string": "cpp",
32-
"cctype": "cpp",
33-
"cmath": "cpp",
34-
"csignal": "cpp",
35-
"cstdarg": "cpp",
36-
"cstddef": "cpp",
37-
"cstdio": "cpp",
38-
"cstdlib": "cpp",
39-
"cstring": "cpp",
40-
"ctime": "cpp",
41-
"cwchar": "cpp",
42-
"cwctype": "cpp",
43-
"atomic": "cpp",
44-
"cstdint": "cpp",
45-
"exception": "cpp",
46-
"iosfwd": "cpp",
47-
"limits": "cpp",
48-
"ratio": "cpp",
49-
"type_traits": "cpp",
50-
"typeinfo": "cpp",
51-
"utility": "cpp",
52-
"vector": "cpp",
53-
"__split_buffer": "cpp",
54-
"deque": "cpp",
55-
"list": "cpp",
56-
"bitset": "cpp",
57-
"ostream": "cpp",
58-
"iostream": "cpp",
59-
"__nullptr": "cpp",
60-
"climits": "cpp",
61-
"iterator": "cpp",
62-
"istream": "cpp",
63-
"functional": "cpp",
64-
"queue": "cpp",
65-
"stack": "cpp",
66-
"__functional_base": "cpp",
67-
"future": "cpp",
68-
"__bit_reference": "cpp",
69-
"__config": "cpp",
70-
"__debug": "cpp",
71-
"__errc": "cpp",
72-
"__hash_table": "cpp",
73-
"__locale": "cpp",
74-
"__mutex_base": "cpp",
75-
"__node_handle": "cpp",
76-
"__string": "cpp",
77-
"__threading_support": "cpp",
78-
"__tree": "cpp",
79-
"__tuple": "cpp",
80-
"array": "cpp",
81-
"bit": "cpp",
82-
"cfenv": "cpp",
83-
"cinttypes": "cpp",
84-
"clocale": "cpp",
85-
"codecvt": "cpp",
86-
"complex": "cpp",
87-
"condition_variable": "cpp",
88-
"csetjmp": "cpp",
89-
"forward_list": "cpp",
90-
"fstream": "cpp",
91-
"iomanip": "cpp",
92-
"ios": "cpp",
93-
"locale": "cpp",
94-
"map": "cpp",
95-
"memory": "cpp",
96-
"mutex": "cpp",
97-
"new": "cpp",
98-
"numeric": "cpp",
99-
"optional": "cpp",
100-
"random": "cpp",
101-
"regex": "cpp",
102-
"scoped_allocator": "cpp",
103-
"sstream": "cpp",
104-
"stdexcept": "cpp",
105-
"streambuf": "cpp",
106-
"string_view": "cpp",
107-
"system_error": "cpp",
108-
"thread": "cpp",
109-
"tuple": "cpp",
110-
"typeindex": "cpp",
111-
"unordered_set": "cpp",
112-
"valarray": "cpp"
113-
},
4+
"python.autoComplete.extraPaths": [
5+
"~/virtualenv/practice/lib/python3.10/site-packages/ "
6+
],
7+
"python.analysis.extraPaths": [
8+
"~/virtualenv/practice/lib/python3.10/site-packages/ "
9+
],
11410
}

.vscode/tags

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)