Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run Python Debug Console in Existing Terminal #13040

Closed
keyonvafa opened this issue Jul 18, 2020 · 2 comments
Closed

Run Python Debug Console in Existing Terminal #13040

keyonvafa opened this issue Jul 18, 2020 · 2 comments
Assignees
Labels
feature-request Request for new features or functionality

Comments

@keyonvafa
Copy link

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!

@keyonvafa keyonvafa added triage-needed Needs assignment to the proper sub-team feature-request Request for new features or functionality labels Jul 18, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Jul 20, 2020
@int19h
Copy link

int19h commented Jul 23, 2020

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.

@keyonvafa
Copy link
Author

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

@int19h int19h closed this as completed Aug 12, 2020
@ghost ghost removed the needs decision label Aug 12, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants