Prevent invalid scopes request from crashing debug session (#2026)
* Prevent invalid scopes request from crashing debug session If an unmapped or non-numeric frameId is sent in a scopes request, int() raises a ValueError that terminates the debug session. Wrap the scope construction in a try/except so that invalid frameIds return an empty scopes list instead, which is valid per the DAP spec. * Add logging for invalid scopes requests Log expected errors (ValueError, TypeError) at info level and unexpected exceptions with full traceback via pydev_log.exception.
P
Philip DePetro committed
8bd57a7d446d6ec4d7dd4e580d00cdea193ddcd9
Parent: bf118c8
Committed by GitHub <noreply@github.com>
on 5/14/2026, 7:12:51 PM