You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to debug a Python module. One debug configuration is set to run the module ("Python: Module"), but I also have other configurations (e.g., "Python: Current File"). In the Run and debug section, I can select one of the configuration and launch it with the shortcut F5 or from the menu Run > Start debugging. The button on the upper right side of the UI, instead, will not pick up the currently selected configuration. It will only use the first configuration with the purpose "debug-in-terminal", in this case "Python: Module"
Now, I can select one of the two configurations in the Run and debug window and launch it via F5 or Run > Start debugging. Instead, the run button will always run the "Python: Module" one, regardless of which one I select in the drop-down menu. If I add
"purpose": [
"debug-in-terminal"
]
also to the "Python: Current File" configuration, that's the one that will be always run.
Diagnostic data
Python version (& distribution if applicable, e.g. Anaconda): 3.10.12
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Global
Value of the python.languageServer setting: Default
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
Type: Bug
Behaviour
Expected vs. Actual
I want to debug a Python module. One debug configuration is set to run the module (
"Python: Module"
), but I also have other configurations (e.g.,"Python: Current File"
). In the Run and debug section, I can select one of the configuration and launch it with the shortcutF5
or from the menuRun > Start debugging
. The button on the upper right side of the UI, instead, will not pick up the currently selected configuration. It will only use the first configuration with the purpose"debug-in-terminal"
, in this case"Python: Module"
Steps to reproduce:
I created a
launch.json
file likeNow, I can select one of the two configurations in the Run and debug window and launch it via
F5
orRun > Start debugging
. Instead, the run button will always run the"Python: Module"
one, regardless of which one I select in the drop-down menu. If I addalso to the
"Python: Current File"
configuration, that's the one that will be always run.Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2023.20.0
VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:51:52.184Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2
The text was updated successfully, but these errors were encountered: