Skip to content

avoid strong reference to exceptions during unwind#2009

Closed
maxbachmann wants to merge 1 commit intomicrosoft:mainfrom
maxbachmann:exception_trace2
Closed

avoid strong reference to exceptions during unwind#2009
maxbachmann wants to merge 1 commit intomicrosoft:mainfrom
maxbachmann:exception_trace2

Conversation

@maxbachmann
Copy link
Contributor

No description provided.

@maxbachmann maxbachmann requested a review from a team as a code owner March 7, 2026 01:08
@maxbachmann maxbachmann closed this Mar 7, 2026
Copilot AI added a commit that referenced this pull request Mar 11, 2026
Per the DAP spec, a ContinueRequest should resume all threads unless
singleThread=True is explicitly set. Previously, only the out-of-process
adapter path worked correctly (it transformed threadId to '*' before
forwarding to pydevd). With the in-process adapter, the specific threadId
reached pydevd directly but was only used to resume that one thread.

Fix on_continue_request to set thread_id='*' whenever singleThread is not
True, regardless of multi_threads_single_notification. Also update
write_continue test helper and add a regression test.

Fixes: #2009

Co-authored-by: rchiodo <19672699+rchiodo@users.noreply.github.com>
rchiodo added a commit that referenced this pull request Mar 13, 2026
…rocess adapter fix) (#2012)

* Initial plan

* Fix multi-thread resume when in-process debug adapter is used

Per the DAP spec, a ContinueRequest should resume all threads unless
singleThread=True is explicitly set. Previously, only the out-of-process
adapter path worked correctly (it transformed threadId to '*' before
forwarding to pydevd). With the in-process adapter, the specific threadId
reached pydevd directly but was only used to resume that one thread.

Fix on_continue_request to set thread_id='*' whenever singleThread is not
True, regardless of multi_threads_single_notification. Also update
write_continue test helper and add a regression test.

Fixes: #2009

Co-authored-by: rchiodo <19672699+rchiodo@users.noreply.github.com>

* Use getattr for safe singleThread attribute access in on_continue_request

Most DAP clients omit the optional singleThread field entirely. Using
getattr(arguments, 'singleThread', False) is more defensive than direct
attribute access, guarding against any non-standard arguments objects.

Co-authored-by: rchiodo <19672699+rchiodo@users.noreply.github.com>

* Add timeout failure comment in test; keep intentional TEST SUCEEDED convention

The 'TEST SUCEEDED' misspelling is an intentional convention in the pydevd
test framework (debugger_unittest.py checks stdout for this exact string).
Revert the resource file to preserve the convention while still adding the
explanatory comment requested in the test method.

Co-authored-by: rchiodo <19672699+rchiodo@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rchiodo <19672699+rchiodo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant