Python Debugger Attached to Azure Functions App Hangs Indefinitely at Breakpoint
@rchiodo đang làm issue này rồi.
Từ ngày 30/9/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Issue Type: Bug
Behavior
When attached to a local process running Azure Functions, the python debugger gets stuck indefinitely at a set breakpoint, and there is no response to clicking step forward button etc. The variables window is also empty and loads indefinitely.
Setup
VS Code:
Version: 1.93.1 (user setup)
Commit: 38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40
Date: 2024-09-11T17:20:05.685Z
Electron: 30.4.0
ElectronBuildId: 10073054
Chromium: 124.0.6367.243
Node.js: 20.15.1
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631
**
Python version: 3.9.7
Python VS Code extension version: v2024.14.1
Azure Functions VS Code extension version: v1.15.4
Azure Core Tools version: 4.0.6280**
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to Python Functions",
"type": "debugpy",
"request": "attach",
"port": 9091,
"preLaunchTask": "func: host start"
}
]
}
tasks.json
...
"tasks": [
{
"type": "func",
"label": "func: host start",
"command": "host start",
"problemMatcher": "$func-python-watch",
"isBackground": true,
"dependsOrder": "sequence",
"dependsOn": ["pip install (functions)"],
...
}, ...
...
Steps to reproduce:
- Click "Run and Debug" to run launch.json "Attach to Python Functions", which will start local Azure Functions serverless app via command 'func host start' and attach to that process.
- Set breakpoint anywhere in any Function
- Trigger the breakpoint
- Debugger hangs indefinitely and cannot see local or global variables. Cannot exit process through CTRL+C. This happens inconsistently, may sometimes step through normally in the same breakpoint without changing the code.
- Debug console is also unresponsive (try typing any command while stuck at breakpoint like print("test") and there is no output)
- Need to restart Azure Functions App by clicking terminal trash can button or "detach" button in debug menu to get unstuck.
Things tried
- Switch Python extension version to pre-release
- Restart VS code
- Re-install Azure Functions extension
- Re-install Azure Core Tools
Screencapture
https://github.com/user-attachments/assets/08409033-5818-4c04-be95-42ab64ae7c84
- Ngôn ngữ chính
- Python
- Star
- 2.5k
- Fork
- 202
- Merge trung bình
- 5 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/debugpy
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Document "rules"-option Đang mởdocumentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
-
Adapter bootstrap fails with ConnectionRefusedError on WSL2 VirtioProxy or hostAddressLoopback Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
Tất cả issue của microsoft/debugpy
Issue tương tự
-
[Bug] reef-hermes tells me to resume with hermes --resume, which does not work from my shell Đang mởarea: harness bug status: needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Human-Agent-Society/reef#625 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 80/100
learningequality/kolibri#15351 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Name consistency Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
eellak/triplestore#65 · 1 bình luận ·