microsoft / microsoft/vscode-cpptools

Need to be able to configure whether to continue running a program after attaching gdb to it

Open
#1,582 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

It seems vscode automatically continues the running program after attaching gdb to it, unlike in a standalone gdb session running program would be stopped after attached.

Maybe it's already possible to configure in launch.json to NOT continue the program after gdb is attached, in that case can anyone tell me what that configuration is? Otherwise such ability would be nice to have.

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

Start with the launch.json attach configuration and the extension's handling of gdb attachment. Compare the current VS Code behavior with standalone gdb, then define done as a configuration option that leaves the program stopped after attaching; document or test the setting if the existing structure supports it.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
devtools
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.