Unable to attach debugger after ipykernel/debugger.py gets imported
まだ誰も着手していません。
評価
調査の方向性
InProcessKernelManager() から ipykernel/debugger.py への import path から始め、ipykernel 6.3.0-or-newer の新しい環境で失敗を再現します。PyCharm または VS Code のデバッガーの attach 動作を確認します。完了の条件は、ipykernel.debugger を fake module に置き換えずにデバッガーを attach できることです。
索引モデルが issue の本文から書いたものです。
説明
The problem starts at version ipykernel==6.3.0 and up. I created a fresh venv in PyCharm and this is what I see in the "Python Window" when clicking the "Attach Debugger" button:



When I use the PyCharm "Debug Server" it locks up forever when trying to connect.
Other team members using vscode are having the same problem.
I'm currently working around the problem with this code at launch of product:
class FakeDebuggerModule:
Debugger = None
_is_debugpy_available = False
import sys
sys.modules['ipykernel.debugger'] = FakeDebuggerModule
The code my application is running which causes debugger.py to get imported is:
from ipykernel.inprocess import InProcessKernelManager
InProcessKernelManager()
- 主要言語
- Python
- スター
- 734
- フォーク
- 411
- 平均マージ
- 1日 2時間
- マージ済み PR(30日)
- 9
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ipython/ipykernel のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 66/100
ipython/ipykernel の issue をすべて見る
似ている issue
-
Add: hunch オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
DiamondLightSource/dodal#2211 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
openml/openml-python#1749 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
sipyourdrink-ltd/bernstein#6191 ·