Skip to content

Fixing issue with debugger CREATE_BOXED_VALUE command. case 1169306. #1222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2019

Conversation

ghost
Copy link

@ghost ghost commented Sep 5, 2019

Rider was sending a CMD_APPDOMAIN_CREATE_BOXED_VALUE command to the
debugger agent when hovering over certain values in the debugger, which
resulted in a class argument that was not a value type. The debugger
tried to create an object of this type and unbox it, but asserted
because it is not a value type. Catching this issue before the unbox
call and returning an error prevents the Editor from crashing, but
the debugger still cannot evaluate the value while hovering. However,
the values can still be inspected using the locals window.

Rider was sending a CMD_APPDOMAIN_CREATE_BOXED_VALUE command to the
debugger agent when hovering over certain values in the debugger, which
resulted in a class argument that was not a value type.  The debugger
tried to create an object of this type and unbox it, but asserted
because it is not a value type.  Catching this issue before the unbox
command and returning an error prevents the Editor from crashing, but
the debugger still cannot evaulate the value while hovering.  However,
the values can still be inspected using the locals window.
@ghost ghost requested review from joshpeterson and joncham September 5, 2019 20:17
@ghost ghost self-assigned this Sep 5, 2019
@joshpeterson
Copy link

Do we need this in IL2CPP as well?

@joncham joncham merged commit d772865 into unity-master Sep 26, 2019
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