microsoft / debugpy

An implementation of the Debug Adapter Protocol for Python
https://pypi.org/project/debugpy/
Other
1.81k stars 131 forks source link

[sys.monitoring] Django breakpoints #1466

Open int19h opened 9 months ago

int19h commented 9 months ago

Source breakpoints in Django templates.

rchiodo commented 3 months ago

Been doing some research (using this to test our stable build of pylance).

In the old code I believe this is handled here: https://github.com/microsoft/debugpy/blob/09b5af0bb730e2707ec3bbc14c509523eca116c0/src/debugpy/_vendored/pydevd/pydevd_plugins/django_debug.py#L514

Basically the plugin is called to:

I think it's likely the new code will have the same logic as the pydevd code.