File tree Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Expand file tree Collapse file tree 3 files changed +52
-0
lines changed Original file line number Diff line number Diff line change 2
2
! .vscode /settings.json
3
3
! .vscode /c_cpp_properties.json
4
4
! .vscode /tasks.json
5
+ ! .vscode /launch.json
5
6
! .vscode /README.md
6
7
7
8
* .o
Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 0.2.0" ,
3
+ "configurations" : [
4
+ {
5
+ "name" : " 开始Debug" ,
6
+ "type" : " cppdbg" ,
7
+ "request" : " launch" ,
8
+ "program" : " ${workspaceFolder}/chsrc-debug" ,
9
+ "args" : [
10
+ " get" ,
11
+ " python"
12
+ ],
13
+ "preLaunchTask" : " 构建 debug 版 chsrc" ,
14
+ "stopAtEntry" : true ,
15
+ "cwd" : " ${fileDirname}" ,
16
+ "environment" : [],
17
+ "externalConsole" : false ,
18
+ "MIMode" : " gdb" ,
19
+ // "miDebuggerPath": "/path/to/gdb",
20
+ "setupCommands" : [
21
+ {
22
+ "description" : " Enable pretty-printing for gdb" ,
23
+ "text" : " -enable-pretty-printing" ,
24
+ "ignoreFailures" : true
25
+ },
26
+ {
27
+ "description" : " Set Disassembly Flavor to Intel" ,
28
+ "text" : " -gdb-set disassembly-flavor intel" ,
29
+ "ignoreFailures" : true
30
+ }
31
+ ]
32
+ }
33
+ ]
34
+ }
Original file line number Diff line number Diff line change 17
17
},
18
18
"detail" : " 使用 just build 编译"
19
19
},
20
+ {
21
+ "type" : " shell" ,
22
+ "label" : " 构建 debug 版 chsrc" ,
23
+ "command" : " just" ,
24
+ "args" : [" DEBUG=1" , " build" ],
25
+ "options" : {
26
+ "cwd" : " ${workspaceFolder}"
27
+ },
28
+ "problemMatcher" : [
29
+ " $gcc"
30
+ ],
31
+ "group" : {
32
+ "kind" : " build" ,
33
+ "isDefault" : true
34
+ },
35
+ "detail" : " 使用 just DEBUG=1 build 编译 debug 版"
36
+ },
20
37
{
21
38
"type" : " shell" ,
22
39
"label" : " 测试 chsrc" ,
You can’t perform that action at this time.
0 commit comments