Attach to PID of application embedding Python not working in VS Code on Windows
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 28/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python, vscode
調査の方向性
まず、Windows 11 上で debugpy 1.8.1 と issue に示されている launch.json 構成を使用して、PID の attach フローを再現します。VSCodeLog.txt と attach のエントリポイントを確認し、デバッグサーバーへの接続がタイムアウトする理由を特定します。attach 後に埋め込み Python の実行が VS Code のブレークポイントで一時停止すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Environment data
- debugpy version: 1.8.1
- OS and version: Windows 11 Enterprise 22H2
- Python version (& distribution if applicable, e.g. Anaconda): 3.10
- Using VS Code or Visual Studio: Visual Studio Code v1.52.1
Context:
I have embedded Python in my application (InProcess, running and loading relevant Python libraries in the same PID as that of my application) and am attempting to attach to this PID of my application from VSCode. The code to debug is to be invoked from my application. I want to be able to attach to my application’s PID using VSCode, ensuring that code executions triggered by my application will pause at breakpoints set in VSCode.
Actual behavior
Attaching to PID times out and a message. "Timed out waiting for debug server to connect" prompts up.
I am using the following launch.json to attach to the PID:
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to MATLAB",
"type": "debugpy",
"request": "attach",
"processId": "${command:pickProcess}"
}
]
}
Error log:
VSCodeLog.txt
- 主要言語
- Python
- スター
- 2.5k
- フォーク
- 202
- 平均マージ
- 5日 1時間
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/debugpy のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
microsoft/debugpy の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
learningequality/kolibri#15351 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Name consistency オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
eellak/triplestore#65 · コメント 1 件 ·