Skip to content

Conversation

@thaystg
Copy link
Member

@thaystg thaystg commented Aug 24, 2021

When trying to evaluate DebuggerProxyAttribute of a generic type <T, K>, it was working only for one parameter .
Fixes #58021

@thaystg thaystg requested a review from lewing August 24, 2021 15:31
@thaystg thaystg requested a review from marek-safar as a code owner August 24, 2021 15:31
@ghost ghost added the area-Debugger-mono label Aug 24, 2021
@ghost
Copy link

ghost commented Aug 24, 2021

Tagging subscribers to this area: @thaystg
See info in area-owners.md if you want to be subscribed.

Issue Details

When trying to evaluate DebuggerProxyAttribute of a generic type <T, K>, it was working only for one parameter .
Fixes #58021

TODO: Add a test case.

Author: thaystg
Assignees: -
Labels:

area-Debugger-mono

Milestone: -

@thaystg thaystg requested review from radical and removed request for marek-safar August 24, 2021 16:13
@thaystg
Copy link
Member Author

thaystg commented Aug 24, 2021

/backport to release/6.0-rc1

@github-actions
Copy link
Contributor

Started backporting to release/6.0-rc1: https://github.com/dotnet/runtime/actions/runs/1163344818

var genericTypeId = await GetTypeByName(sessionId, typeToSearch, token);
if (genericTypeId < 0)
return null;
methodId = await GetMethodIdByName(sessionId, genericTypeId, ".ctor", token);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this fail to find the correct .ctor, if there is more than one on the type?

Also, DebuggerTypeProxy accepts a string arg with the type name. That doesn't have to be in this PR though.

Copy link
Member

@radical radical left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My comments can be addressed in a separate PR. LGTM!

@thaystg thaystg merged commit bfaa0fa into dotnet:main Aug 24, 2021
@lewing
Copy link
Member

lewing commented Aug 24, 2021

ci hit #58062

@ghost ghost locked as resolved and limited conversation to collaborators Sep 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[wasm][debugger] Assertion while debugging

3 participants