microsoft / microsoft/vscode-cpptools

[gdbserver] Detach when stopping debugging when using gdbserver

オープン
#4,166 コメント 12 件 リアクション 7 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

debugger Feature Request
主要言語
TypeScript
スター
6.2k
フォーク
1.7k
平均マージ
14時間 46分
マージ済み PR(30日)
61

説明

In our setup we have multiple remote C/C++ applications running on various VMs (like many other projects).
I'm working on making possible to remote debug these applications with VSCode (by attaching, not launching) .
So far I managed to get everything working but 1 very important detail: it's very important that the remote application isn't killed when I stop the debugger (GDB, to be precise).
This is because there are many setups scripts that are run on those applications and we can't re-run all of them every time we end a debugging session.

Is there any way to modify what gdb does at closing time? Ideally, I'd like to first detach the application from GDB and then exit GDB, which is what anyone would do to avoid the killing of the application.

I couldn't find any documentation, issues or unofficial guides regarding this.

Thank you in advance.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、issue に記載されている TypeScript 拡張機能の gdbserver へのアタッチ処理とデバッガー停止処理を追跡し、次に C/C++ リモートセッションがどのように終了されるかを調べます。デタッチと終了のどちらの動作が選択されるか、その箇所を特定し、関連する既存のテストがあれば確認します。アタッチされた gdbserver セッションを停止してもリモートアプリケーションが実行されたままになることが完了条件です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp, typescript
領域
devtools
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。