Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Attach to PID of application embedding Python not working in VS Code on Windows

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

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

評価

難易度
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 の本文から書いたものです。

説明

bug

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

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

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

はじめの一歩

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

microsoft/debugpy のほかの issue

microsoft/debugpy の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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