microsoft / microsoft/vscode-python-debugger
Option "execute in file dir" ignored when use play button "debug python file in terminal"
@karthiknadig がすでに取り組んでいます。
2024年8月8日 から。
- 主要言語
- TypeScript
- スター
- 181
- フォーク
- 126
- 平均マージ
- 2日 3時間
- マージ済み PR(30日)
- 3
説明
Environment data
- VS Code version: 1.61.0
- Extension version: 2021.10.1317843341
- OS and version: 10.0.19043.1237
- Python version: 3.8.8 Anaconda
- Type of virtual environment used: conda
- Value of the
python.languageServersetting: default
Expected behaviour
When debugging python file in terminal, it should use the option to "execute the file in the file's directory, instead of the current open folder" (setting "python.terminal.executeInFileDir": true)
It is ok when choose "run python file in terminal". It should do the same when debugging.

Actual behaviour
"Debug python file in terminal" (with the same "play button" used to "run python file in terminal") ignores the setting "python.terminal.executeInFileDir": true

Steps to reproduce:
Try to "debug python file in the terminal" with the same "play button" used to "run python file in terminal".
It leads to error specially when leading with local files in debugging, which worked fine when running.
See bellow running and debugging the same file, in the same folder.

コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
評価
この issue はまだ評価されていません。