microsoft / microsoft/vscode-cpptools

Auto Attach when launching from integrated terminal

Open
#8,202 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Type: Feature Request

I need to launch a C++ program through SSH on a linux host using a specialized environment and a bash prompt which is achieved through running a bunch of scripts. I can launch the program using the integrated terminal. I'm looking for a way to attach the debugger to the launched program once it starts. Is that possible with the CPP extension? i noticed that there is a auto attach feature for node.js but not for C++ programs.

I've been using TotalView to debug programs as I'm unable to do so using VSCode. you can launch TotalView from the specialized environment and bash prompt and it's able to attach itself to the program

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 by reviewing how the C++ extension handles programs launched from the integrated terminal on a Linux host over SSH, including workflows that depend on bash scripts and a specialized environment. Compare this with the Node.js auto-attach feature and the reported TotalView workflow. Done would mean a documented or implemented way to attach the C++ debugger automatically when the terminal-launched program starts.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, cpp
Domain
cli, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.