microsoft / microsoft/vscode-python-debugger
Pylance features are not working when debugger is attached to file outside workspace
未關閉
@eleanorjboyd 已經在處理了。
開始於 2025年5月27日。
- 主要語言
- TypeScript
- 星號
- 181
- 分支
- 126
- 平均合併
- 2 天 3 小時
- 30 天內合併 PR
- 3
描述
- Save the snippet below, set breakpoint at
bar()and then run it (not in debug mode). - Attach debugger.
- Try to go to definition for
barorfoo. ctrl-click is not working and go to definition is not present in context menu. - If you hover over variable it says use 'Alt' to show editor language tooltip but it's not working.
- Syntax highlight itself looks weirdly - apparently the problem is that symbols are not recognizes as such and modules / methods / functions appear just as white, making it harder to read.
Snippet:
import debugpy
def foo():
print("hello")
def bar():
foo()
debugpy.listen(5678)
debugpy.wait_for_client()
bar()
Issue demo:
https://github.com/user-attachments/assets/ffe6b4fc-24e4-484f-be84-727ea163774e
Expected result (for it to work in similar way to starting debug mode from editor):
https://github.com/user-attachments/assets/a494d7b0-7d8d-4e44-be7b-a378edbfbdb6
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
評估
這個 Issue 還沒有評估資料。