microsoft / microsoft/vscode-js-debug

Option to abort when pressing debug and can't connect

Open
#2,167 0 comments 0 reactions 1 assignee View on GitHub

@connor4312 is already working on this.

Since Feb 4, 2025.

bug
Dominant language
TypeScript
Stars
2k
Forks
373
Avg merge
1d 9m
Merged PRs (30d)
6

Description

Is your feature request related to a problem? Please describe.
Sometimes I hit debug (the green play button in the launch view) before realising my debug target is not bound to a port. However VS Code seems to be spinning (blue line going left to right) and there seems to be no way to abort the process.

The way I get around it today is by quitting VS Code and reopening it, but that's not great.
Sometimes it will timeout on its own but I don't want to sit waiting for that.,

Describe the feature you'd like
Can we change the UI to add the option to abort, for when hitting the play button can it change to a red square (even when connecting) then hitting that red square aborts the debug session.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.