microsoft / microsoft/vscode-python-debugger

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

Ouverte
#257 6 commentaires 1 réaction 1 personne assignée Voir sur GitHub

@karthiknadig y travaille déjà.

Depuis le 8/8/2024.

bug needs PR
Langage dominant
TypeScript
Étoiles
181
Forks
126
Merge moyen
2 j 3 h
PR mergées (30 j)
3

Description

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

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.