microsoft / microsoft/vscode-python-debugger
Option "execute in file dir" ignored when use play button "debug python file in terminal"
@karthiknadig arbeitet bereits daran.
Seit 08.8.2024.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 181
- Forks
- 126
- Ø Merge
- 2 T. 3 Std.
- Gemergte PRs (30 T.)
- 3
Beschreibung
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.

Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.