microsoft / microsoft/vscode-cpptools

Add support for listening to "restart debug" events

Open
#12,203 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debugger enhancement help wanted
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Feature Request

Description:
Currently, the C/C++ extension provides events for tracking the lifecycle of debug sessions, such as onDidStartDebugSession and onDidTerminateDebugSession. However, there is no event available specifically for listening to the "restart debug" action triggered by the user.

Use Case:
Debugging with GDB in conjunction with qemu, I have to start the qemu command in the terminal first, and then connect the port number when debugging and configuring gdb.
When debugging is restarted, only the termination event is triggered, the qemu process is shut down, and the configuration is restarted.

Environment:

  • VSCode 1.85
  • Windows x86
  • WSL Ubuntu
  • C/C++ Extension

企业微信截图_17132352381882

企业微信截图_17132352931286

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.

Research direction

Search the TypeScript extension for the existing onDidStartDebugSession and onDidTerminateDebugSession events, then trace how the user-triggered restart action is handled. Define the new restart event alongside the existing lifecycle events and verify that it fires when debugging is restarted, including the GDB, QEMU, and WSL scenario described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.