質問編集履歴

2

VSCodeのlaunch.jsonの内容の追加

2018/12/08 02:13

投稿

faker
faker

スコア51

test CHANGED
File without changes
test CHANGED
@@ -89,3 +89,145 @@
89
89
 
90
90
 
91
91
  ダウンロードしたPyxelプログラムのフォルダをVSCodeで開き、「01_hello_pyxel.py」を実行した
92
+
93
+
94
+
95
+ ### VSCodeのlaunch.json
96
+
97
+ 情報追加したほうがよいとの指摘があったため、VSCodeのlaunch.jsonを補足させていただきます。launch.jsonってこれのことでしょうか?よろしくお願いします。
98
+
99
+
100
+
101
+ ######launch.json
102
+
103
+ ```json
104
+
105
+ {
106
+
107
+ // IntelliSense を使用して利用可能な属性を学べます。
108
+
109
+ // 既存の属性の説明をホバーして表示します。
110
+
111
+ // 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
112
+
113
+ "version": "0.2.0",
114
+
115
+ "configurations": [
116
+
117
+ {
118
+
119
+ "name": "Python: Current File (Integrated Terminal)",
120
+
121
+ "type": "python",
122
+
123
+ "request": "launch",
124
+
125
+ "program": "${file}",
126
+
127
+ "console": "integratedTerminal"
128
+
129
+ },
130
+
131
+ {
132
+
133
+ "name": "Python: Attach",
134
+
135
+ "type": "python",
136
+
137
+ "request": "attach",
138
+
139
+ "port": 5678,
140
+
141
+ "host": "localhost"
142
+
143
+ },
144
+
145
+ {
146
+
147
+ "name": "Python: Module",
148
+
149
+ "type": "python",
150
+
151
+ "request": "launch",
152
+
153
+ "module": "enter-your-module-name-here",
154
+
155
+ "console": "integratedTerminal"
156
+
157
+ },
158
+
159
+ {
160
+
161
+ "name": "Python: Django",
162
+
163
+ "type": "python",
164
+
165
+ "request": "launch",
166
+
167
+ "program": "${workspaceFolder}/manage.py",
168
+
169
+ "console": "integratedTerminal",
170
+
171
+ "args": [
172
+
173
+ "runserver",
174
+
175
+ "--noreload",
176
+
177
+ "--nothreading"
178
+
179
+ ],
180
+
181
+ "django": true
182
+
183
+ },
184
+
185
+ {
186
+
187
+ "name": "Python: Flask",
188
+
189
+ "type": "python",
190
+
191
+ "request": "launch",
192
+
193
+ "module": "flask",
194
+
195
+ "env": {
196
+
197
+ "FLASK_APP": "app.py"
198
+
199
+ },
200
+
201
+ "args": [
202
+
203
+ "run",
204
+
205
+ "--no-debugger",
206
+
207
+ "--no-reload"
208
+
209
+ ],
210
+
211
+ "jinja": true
212
+
213
+ },
214
+
215
+ {
216
+
217
+ "name": "Python: Current File (External Terminal)",
218
+
219
+ "type": "python",
220
+
221
+ "request": "launch",
222
+
223
+ "program": "${file}",
224
+
225
+ "console": "externalTerminal"
226
+
227
+ }
228
+
229
+ ]
230
+
231
+ }
232
+
233
+ ```

1

タイトルの誤字訂正

2018/12/08 02:13

投稿

faker
faker

スコア51

test CHANGED
@@ -1 +1 @@
1
- VSCode内でPythonが実行できず、エラーが発生する
1
+ VSCode内であるPythonプログラムが実行できず、エラーが発生する
test CHANGED
File without changes