質問編集履歴
2
VSCodeのlaunch.jsonの内容の追加
title
CHANGED
|
File without changes
|
body
CHANGED
|
@@ -43,4 +43,75 @@
|
|
|
43
43
|
|
|
44
44
|
### 試したこと
|
|
45
45
|
|
|
46
|
-
ダウンロードしたPyxelプログラムのフォルダをVSCodeで開き、「01_hello_pyxel.py」を実行した
|
|
46
|
+
ダウンロードしたPyxelプログラムのフォルダをVSCodeで開き、「01_hello_pyxel.py」を実行した
|
|
47
|
+
|
|
48
|
+
### VSCodeのlaunch.json
|
|
49
|
+
情報追加したほうがよいとの指摘があったため、VSCodeのlaunch.jsonを補足させていただきます。launch.jsonってこれのことでしょうか?よろしくお願いします。
|
|
50
|
+
|
|
51
|
+
######launch.json
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
// IntelliSense を使用して利用可能な属性を学べます。
|
|
55
|
+
// 既存の属性の説明をホバーして表示します。
|
|
56
|
+
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
|
|
57
|
+
"version": "0.2.0",
|
|
58
|
+
"configurations": [
|
|
59
|
+
{
|
|
60
|
+
"name": "Python: Current File (Integrated Terminal)",
|
|
61
|
+
"type": "python",
|
|
62
|
+
"request": "launch",
|
|
63
|
+
"program": "${file}",
|
|
64
|
+
"console": "integratedTerminal"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "Python: Attach",
|
|
68
|
+
"type": "python",
|
|
69
|
+
"request": "attach",
|
|
70
|
+
"port": 5678,
|
|
71
|
+
"host": "localhost"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "Python: Module",
|
|
75
|
+
"type": "python",
|
|
76
|
+
"request": "launch",
|
|
77
|
+
"module": "enter-your-module-name-here",
|
|
78
|
+
"console": "integratedTerminal"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "Python: Django",
|
|
82
|
+
"type": "python",
|
|
83
|
+
"request": "launch",
|
|
84
|
+
"program": "${workspaceFolder}/manage.py",
|
|
85
|
+
"console": "integratedTerminal",
|
|
86
|
+
"args": [
|
|
87
|
+
"runserver",
|
|
88
|
+
"--noreload",
|
|
89
|
+
"--nothreading"
|
|
90
|
+
],
|
|
91
|
+
"django": true
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "Python: Flask",
|
|
95
|
+
"type": "python",
|
|
96
|
+
"request": "launch",
|
|
97
|
+
"module": "flask",
|
|
98
|
+
"env": {
|
|
99
|
+
"FLASK_APP": "app.py"
|
|
100
|
+
},
|
|
101
|
+
"args": [
|
|
102
|
+
"run",
|
|
103
|
+
"--no-debugger",
|
|
104
|
+
"--no-reload"
|
|
105
|
+
],
|
|
106
|
+
"jinja": true
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "Python: Current File (External Terminal)",
|
|
110
|
+
"type": "python",
|
|
111
|
+
"request": "launch",
|
|
112
|
+
"program": "${file}",
|
|
113
|
+
"console": "externalTerminal"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
```
|
1
タイトルの誤字訂正
title
CHANGED
|
@@ -1,1 +1,1 @@
|
|
|
1
|
-
VSCode内でPythonが実行できず、エラーが発生する
|
|
1
|
+
VSCode内であるPythonプログラムが実行できず、エラーが発生する
|
body
CHANGED
|
File without changes
|