microsoft / microsoft/vscode-python-debugger

Option "execute in file dir" ignored when use play button "debug python file in terminal"

Aperta
#257 6 commenti 1 reazione 1 assegnatario Vedi su GitHub

@karthiknadig ci sta già lavorando.

Dal 8/8/2024.

bug needs PR
Lingua principale
TypeScript
Stelle
181
Fork
126
Merge medio
2g 3h
PR unite (30g)
3

Descrizione

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.languageServer setting: 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.

gif001

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

gif002

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.

gif003

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.