ipython / ipython/ipykernel

Unable to attach debugger after ipykernel/debugger.py gets imported

Đang mở
#975 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
734
Fork
412
Merge trung bình
1 ngày 5 giờ
Pull request đã merge (30 ngày)
8

Mô tả

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:

![image](https://user-images.githubusercontent.com/3181696/183484084-83e3cd8e-d910-4937-91b0-6cf261baf503.png)
![image](https://user-images.githubusercontent.com/3181696/183484680-78646e3e-1c44-416b-a722-691f75aa8a2f.png)
![image](https://user-images.githubusercontent.com/3181696/183484728-8f90545f-72cb-4703-b986-1ad97953c084.png)

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()
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.