困っていること
デバッグができるファイルとできないファイルがあり、どのような条件でデバッグができるのかわからない状況です。
実現したいこと
どんなファイルでもデバッグができるようにしたい。
発生している問題・エラーメッセージ
【環境】
vscode 1.69.2
python 3.7.5→3.6.9
【手順】
①元々python3.7.5のバージョンでデバッグを実行していた
②デバッグを行っていたファイルは右記ディレクトリ「user/notebook/fileA」
③user/pyfile/fileBに移動
④python3.6.9に切り替える(fileBを実行するために別の環境のバージョンライブラリが必要なため)
⑤fileB.pyのデバックを実行しようとしても起動しない。(デバッグ起動コマンドを押しても、コマンドメニューがすぐに消えてしまう。)
【vscodeの設定ファイル】
json
1 { 2 // Use IntelliSense to learn about possible attributes. 3 // Hover to view descriptions of existing attributes. 4 // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 5 "version": "0.2.0", 6 "configurations": [ 7 { 8 "name": "Python: Current File", 9 "type": "python", 10 "request": "launch", 11 "program": "${file}", 12 "console": "integratedTerminal", 13 "justMyCode": true 14 } 15 ] 16 }
デバッグの情報について何かヒントになることがあればぜひご教示いただけると嬉しいです。。どうぞよろしくお願いいたします。
あなたの回答
tips
プレビュー