microsoft / microsoft/vscode-python-debugger

Pylance features are not working when debugger is attached to file outside workspace

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

@eleanorjboyd がすでに取り組んでいます。

2025年5月27日 から。

主要言語
TypeScript
スター
181
フォーク
126
平均マージ
2日 3時間
マージ済み PR(30日)
3

説明

  1. Save the snippet below, set breakpoint at bar() and then run it (not in debug mode).
  2. Attach debugger.
  3. Try to go to definition for bar or foo. ctrl-click is not working and go to definition is not present in context menu.
  4. If you hover over variable it says use 'Alt' to show editor language tooltip but it's not working.
    Image
  5. 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

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

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

はじめの一歩

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

評価

この issue はまだ評価されていません。

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

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