microsoft / microsoft/vscode-python-debugger

No Config Debugging errors when multiple vscode windows are open

オープン
#916 コメント 5 件 リアクション 1 件 担当者 0 名 GitHub で見る

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

triage-needed verification-needed
主要言語
TypeScript
スター
181
フォーク
126
平均マージ
2日 3時間
マージ済み PR(30日)
3

説明

If I use the no config debugging feature with multiple vscode windows open, all of them try to start debugging. Whichever is first suceeds and the rest throw a Server[pid=xxxx] is already being debugged error.

The cause for this is that the extension watches the .noConfigDebugAdapterEndpoints dir and starts debugging if any file appears in it not just if the specified file (VSCODE_DEBUGPY_ADAPTER_ENDPOINTS) is created. Each window has a separate endpoint file in the .noConfigDebugAdapterEndpoints dir, but due to watching for any file, every window will start debugging.

https://github.com/microsoft/vscode-python-debugger/blob/d7b96430e7dda95cc3d6565364e3639a2b9501c3/src/extension/noConfigDebugInit.ts#L95-L97

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

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

はじめの一歩

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

調査の方向性

src/extension/noConfigDebugInit.ts の 95-97 行付近から始め、.noConfigDebugAdapterEndpoints ディレクトリがどのように監視されているかを読み取ってください。VSCODE_DEBUGPY_ADAPTER_ENDPOINTS が指定するエンドポイントファイルが作成された場合にのみデバッグが開始され、別々の VS Code ウィンドウが互いのファイルに反応しないことを確認してください。

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

評価

技術スタック
typescript
領域
devtools
issue の種類
バグ
難易度
2/5
見積もり時間
1〜3時間
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
45/100

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

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