回答編集履歴
1
jsonファイルにコメントを追記
test
CHANGED
@@ -14,11 +14,11 @@
|
|
14
14
|
|
15
15
|
{
|
16
16
|
|
17
|
-
"label": "Debug Build",
|
17
|
+
"label": "Debug Build", // "echo"から任意のわかりやすい名前へ、launch.jsonの"preLaunchTask"等で使われる
|
18
18
|
|
19
|
-
"type": "process",
|
19
|
+
"type": "process", // "shell"から"process"に変更
|
20
20
|
|
21
|
-
"command": "gcc",
|
21
|
+
"command": "gcc", // "echo Hello"から"gcc"に変更
|
22
22
|
|
23
23
|
"args": [
|
24
24
|
|
@@ -26,13 +26,13 @@
|
|
26
26
|
|
27
27
|
"-Og",
|
28
28
|
|
29
|
-
"step.c
|
29
|
+
"step.c",
|
30
30
|
|
31
31
|
"-ostep.exe"
|
32
32
|
|
33
33
|
],
|
34
34
|
|
35
|
-
"group": {
|
35
|
+
"group": { // ビルドタスクの実行(Ctrl+Shift+B)でこのタスクが実行されるようになる
|
36
36
|
|
37
37
|
"kind": "build",
|
38
38
|
|
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
},
|
42
42
|
|
43
|
-
"problemMatcher": "$gcc"
|
43
|
+
"problemMatcher": "$gcc" // "$tsc"から"$gcc"に変更、gccのビルドエラーがターミナルの問題にリストアップされるようになる
|
44
44
|
|
45
45
|
}
|
46
46
|
|
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
"request": "launch",
|
82
82
|
|
83
|
-
"program": "${workspaceFolder}/step.exe",
|
83
|
+
"program": "${workspaceFolder}/step.exe", // デバッグ対象へのパス
|
84
84
|
|
85
85
|
"args": [],
|
86
86
|
|
@@ -94,7 +94,7 @@
|
|
94
94
|
|
95
95
|
"MIMode": "gdb",
|
96
96
|
|
97
|
-
"miDebuggerPath": "c:/mingw/bin/gdb.exe",
|
97
|
+
"miDebuggerPath": "c:/mingw/bin/gdb.exe", // gdb.exeへのフルパス
|
98
98
|
|
99
99
|
"setupCommands": [
|
100
100
|
|
@@ -110,7 +110,7 @@
|
|
110
110
|
|
111
111
|
],
|
112
112
|
|
113
|
-
"preLaunchTask": "Debug Build"
|
113
|
+
"preLaunchTask": "Debug Build" // デバッグ開始時に実行するtask.jsonのタスク名
|
114
114
|
|
115
115
|
}
|
116
116
|
|