質問編集履歴

2

文法修正しました。

2019/04/22 23:41

投稿

rittya
rittya

スコア10

test CHANGED
File without changes
test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  ###エラーメッセージcode
22
22
 
23
- ``C
23
+ ```C
24
24
 
25
25
  GNU gdb (GDB) 7.6.1
26
26
 
@@ -148,57 +148,45 @@
148
148
 
149
149
  {
150
150
 
151
- // IntelliSense を使用して利用可能な属性を学べます。
152
-
153
- // 既存の属性の説明をホバーして表示します。
154
-
155
- // 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
156
-
157
- "version": "0.2.0",
158
-
159
151
  "configurations": [
160
152
 
161
153
  {
162
154
 
163
- "name": "(gdb) Launch",
164
-
165
- "type": "cppdbg",
155
+ "name": "Win32",
156
+
166
-
157
+ "includePath": [
158
+
159
+ "${workspaceFolder}",
160
+
167
- "request": "launch",
161
+ "C:/MinGW/include"
168
-
162
+
169
- "program": "${workspaceFolder}/test//helloworld.exe",
163
+ ],
170
-
164
+
171
- "args": [],
165
+ "defines": [
172
-
166
+
173
- "stopAtEntry": false,
167
+ "_DEBUG",
174
-
175
- "cwd": "${workspaceFolder}",
168
+
176
-
177
- "environment": [],
169
+ "UNICODE",
178
-
170
+
179
- "externalConsole": true,
171
+ "_UNICODE"
172
+
180
-
173
+ ],
174
+
175
+ "windowsSdkVersion": "10.0.18362.1",
176
+
177
+ "compilerPath": "C:/MinGW/bin/gcc.exe",
178
+
181
- "MIMode": "gdb",
179
+ "cStandard": "c11",
180
+
182
-
181
+ "cppStandard": "c++17",
182
+
183
- "miDebuggerPath": "c:\mingw\bin\gdb.exe",
183
+ "intelliSenseMode": "clang-x64"
184
-
185
- "setupCommands": [
186
-
187
- {
188
-
189
- "description": "Enable pretty-printing for gdb",
190
-
191
- "text": "-enable-pretty-printing",
192
-
193
- "ignoreFailures": true
194
-
195
- }
196
-
197
- ]
198
184
 
199
185
  }
200
186
 
201
- ]
187
+ ],
188
+
189
+ "version": 4
202
190
 
203
191
  }
204
192
 

1

書式改善しました。

2019/04/22 23:41

投稿

rittya
rittya

スコア10

test CHANGED
File without changes
test CHANGED
@@ -8,15 +8,19 @@
8
8
 
9
9
  授業でC言語を使うことになり、自分のPCでvs codeを使用しています。
10
10
 
11
+ コンパイラはMinGW version8.2.0を使用しています。
12
+
11
13
 
12
14
 
13
15
  ## 発生している問題・エラーメッセージ
14
16
 
15
- デバッグが出来ません。
17
+ デバッグを開始してもHello,world!表示されません。
16
-
17
- ```
18
+
18
-
19
+
20
+
19
- ###エラーメッセージ
21
+ ###エラーメッセージcode
22
+
23
+ ``C
20
24
 
21
25
  GNU gdb (GDB) 7.6.1
22
26
 
@@ -48,9 +52,13 @@
48
52
 
49
53
 
50
54
 
55
+ ```
56
+
57
+
58
+
51
59
  # 該当のソースコード
52
60
 
53
- ###helloworld.c
61
+ ```C
54
62
 
55
63
  include <stdio.h>
56
64
 
@@ -66,8 +74,14 @@
66
74
 
67
75
 
68
76
 
77
+ ```
78
+
79
+
80
+
69
81
  ###launch.json
70
82
 
83
+ ```C
84
+
71
85
  {
72
86
 
73
87
  // IntelliSense を使用して利用可能な属性を学べます。
@@ -124,10 +138,14 @@
124
138
 
125
139
  }
126
140
 
141
+ ```
142
+
127
143
 
128
144
 
129
145
  ###c_cpp_properties.json
130
146
 
147
+ ```C
148
+
131
149
  {
132
150
 
133
151
  // IntelliSense を使用して利用可能な属性を学べます。
@@ -184,8 +202,16 @@
184
202
 
185
203
  }
186
204
 
205
+
206
+
207
+ ```
208
+
209
+
210
+
187
211
  ###tasks.json
188
212
 
213
+ ```C
214
+
189
215
  {
190
216
 
191
217
  "tasks": [
@@ -224,6 +250,8 @@
224
250
 
225
251
  }
226
252
 
253
+ ```
254
+
227
255
 
228
256
 
229
257
  ##試したこと