Skip to content

Fix evaluation of variables from chained exception frames#2018

Merged
rchiodo merged 2 commits intomicrosoft:mainfrom
pdepetro:main
Apr 10, 2026
Merged

Fix evaluation of variables from chained exception frames#2018
rchiodo merged 2 commits intomicrosoft:mainfrom
pdepetro:main

Conversation

@pdepetro
Copy link
Copy Markdown
Contributor

@pdepetro pdepetro commented Apr 7, 2026

When stopped on a chained exception, selecting a frame from the cause/context exception in the call stack would show "Unable to find thread to evaluate variable reference." for every variable. This happened because chained exception frames were included in the stackTrace DAP response but were never registered in the SuspendedFramesManager for variable lookup.

Modified _FramesTracker.track() to always walk the chained_frames_list and register those frames in the same tracker, enabling variable evaluation for chained exception frames.

@pdepetro pdepetro requested a review from a team as a code owner April 7, 2026 19:22
@rchiodo
Copy link
Copy Markdown
Contributor

rchiodo commented Apr 7, 2026

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@rchiodo
Copy link
Copy Markdown
Contributor

rchiodo commented Apr 10, 2026

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@rchiodo
Copy link
Copy Markdown
Contributor

rchiodo commented Apr 10, 2026

Thanks for the PR

@rchiodo rchiodo merged commit 0f037ad into microsoft:main Apr 10, 2026
25 of 27 checks passed
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.

2 participants