Skip to content

Run Python Debug Console in Existing Terminal #13040

Description

@keyonvafa

When I use the debugger on a Python file (via F5), the Python Debug Console opens in a new terminal. It would be great to have the option to have the Python Debug Console open in an existing active terminal. The reason for this is that I use Remote to develop on a shared cluster. My workflow is: I request a machine for an interactive job, so my terminal is attached to a specific machine. However when I run the debug command, the Python Debug Console opens a new terminal on the main node of the cluster rather than on the machine I'm using for the interactive job.
Thank you!

Activity

  1. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on Jul 20, 2020
  2. int19h commented on Jul 23, 2020

    @int19h

    This would be a great feature, but, unfortunately, we're constrained by VSCode itself here. The debugger can only request to run something in a terminal with a given title (and you can specify that title in launch.json by setting "consoleTitle", if you don't like the default "Python Debug Console"). However, whether and how to reuse an existing terminal is entirely down to VSCode. I was hoping that it'd reuse an existing terminal with matching title - but this doesn't seem to be the case.

    microsoft/vscode#68123 might be relevant here, although it's not quite the same, since it's about grouping newly spawned terminals.

  3. keyonvafa commented on Jul 23, 2020

    @keyonvafa
    Author

    Ah got it, that makes sense. Thanks for letting me know!

  4. locked as resolved and limited conversation to collaborators on Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestRequest for new features or functionality

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions