microsoft / microsoft/vscode-python-debugger

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

Abierto
#688 3 comentarios 0 reacciones 1 asignado Ver en GitHub

@eleanorjboyd ya está trabajando en esto.

Desde el 27/5/2025.

Lenguaje dominante
TypeScript
Estrellas
181
Forks
126
Merge medio
2 d 3 h
PR fusionados (30 d)
3

Descripción

  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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.