質問編集履歴
2
文法修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
デバッグを開始してもHello,world!が表示されません。
|
10
10
|
|
11
11
|
###エラーメッセージcode
|
12
|
-
``C
|
12
|
+
```C
|
13
13
|
GNU gdb (GDB) 7.6.1
|
14
14
|
Copyright (C) 2013 Free Software Foundation, Inc.
|
15
15
|
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
|
@@ -73,32 +73,26 @@
|
|
73
73
|
###c_cpp_properties.json
|
74
74
|
```C
|
75
75
|
{
|
76
|
-
// IntelliSense を使用して利用可能な属性を学べます。
|
77
|
-
// 既存の属性の説明をホバーして表示します。
|
78
|
-
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
|
79
|
-
"version": "0.2.0",
|
80
76
|
"configurations": [
|
81
77
|
{
|
82
|
-
"name": "(gdb) Launch",
|
83
|
-
"
|
78
|
+
"name": "Win32",
|
79
|
+
"includePath": [
|
80
|
+
"${workspaceFolder}",
|
84
|
-
|
81
|
+
"C:/MinGW/include"
|
85
|
-
|
82
|
+
],
|
86
|
-
"
|
83
|
+
"defines": [
|
87
|
-
|
84
|
+
"_DEBUG",
|
88
|
-
"cwd": "${workspaceFolder}",
|
89
|
-
|
85
|
+
"UNICODE",
|
90
|
-
|
86
|
+
"_UNICODE"
|
87
|
+
],
|
88
|
+
"windowsSdkVersion": "10.0.18362.1",
|
89
|
+
"compilerPath": "C:/MinGW/bin/gcc.exe",
|
91
|
-
"
|
90
|
+
"cStandard": "c11",
|
91
|
+
"cppStandard": "c++17",
|
92
|
-
"
|
92
|
+
"intelliSenseMode": "clang-x64"
|
93
|
-
"setupCommands": [
|
94
|
-
{
|
95
|
-
"description": "Enable pretty-printing for gdb",
|
96
|
-
"text": "-enable-pretty-printing",
|
97
|
-
"ignoreFailures": true
|
98
|
-
}
|
99
|
-
]
|
100
93
|
}
|
101
|
-
]
|
94
|
+
],
|
95
|
+
"version": 4
|
102
96
|
}
|
103
97
|
|
104
98
|
```
|
1
書式改善しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,11 +3,13 @@
|
|
3
3
|
ここに質問の内容を詳しく書いてください。
|
4
4
|
プログラミング言語初心者です。
|
5
5
|
授業でC言語を使うことになり、自分のPCでvs codeを使用しています。
|
6
|
+
コンパイラはMinGW version8.2.0を使用しています。
|
6
7
|
|
7
8
|
## 発生している問題・エラーメッセージ
|
8
|
-
デバッグが
|
9
|
+
デバッグを開始してもHello,world!が表示されません。
|
9
|
-
|
10
|
+
|
10
|
-
###エラーメッセージ
|
11
|
+
###エラーメッセージcode
|
12
|
+
``C
|
11
13
|
GNU gdb (GDB) 7.6.1
|
12
14
|
Copyright (C) 2013 Free Software Foundation, Inc.
|
13
15
|
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
|
@@ -23,8 +25,10 @@
|
|
23
25
|
[New Thread 3768.0x1f74]
|
24
26
|
The program 'C:\Users\ユーザー\Documents\vscode\test\helloworld.exe' has exited with code 0 (0x00000000).
|
25
27
|
|
28
|
+
```
|
29
|
+
|
26
30
|
# 該当のソースコード
|
27
|
-
|
31
|
+
```C
|
28
32
|
include <stdio.h>
|
29
33
|
int main(void)
|
30
34
|
{
|
@@ -32,7 +36,10 @@
|
|
32
36
|
return 0;
|
33
37
|
}
|
34
38
|
|
39
|
+
```
|
40
|
+
|
35
41
|
###launch.json
|
42
|
+
```C
|
36
43
|
{
|
37
44
|
// IntelliSense を使用して利用可能な属性を学べます。
|
38
45
|
// 既存の属性の説明をホバーして表示します。
|
@@ -61,8 +68,10 @@
|
|
61
68
|
}
|
62
69
|
]
|
63
70
|
}
|
71
|
+
```
|
64
72
|
|
65
73
|
###c_cpp_properties.json
|
74
|
+
```C
|
66
75
|
{
|
67
76
|
// IntelliSense を使用して利用可能な属性を学べます。
|
68
77
|
// 既存の属性の説明をホバーして表示します。
|
@@ -91,7 +100,11 @@
|
|
91
100
|
}
|
92
101
|
]
|
93
102
|
}
|
103
|
+
|
104
|
+
```
|
105
|
+
|
94
106
|
###tasks.json
|
107
|
+
```C
|
95
108
|
{
|
96
109
|
"tasks": [
|
97
110
|
{
|
@@ -111,6 +124,7 @@
|
|
111
124
|
],
|
112
125
|
"version": "2.0.0"
|
113
126
|
}
|
127
|
+
```
|
114
128
|
|
115
129
|
##試したこと
|
116
130
|
pathの環境変数は通してあります。
|