Uh oh!
There was an error while loading. Please reload this page.
[wasm][debugger] Hide members from classes that don't have debug information - #73982
Conversation
ghost
commented
Aug 16, 2022
Tagging subscribers to this area: @thaystg Issue DetailsDo not show members from classes that don't have debug information if JMC is enabled. Fixes #43184
|
| var typeInfo = await sdbHelper.GetTypeInfo(containerTypeId, token); | ||
| if (typeInfo.Info.IsNonUserCode && getCommandOptions.HasFlag(GetObjectCommandOptions.JustMyCode)) | ||
| return fieldValues; | ||
| var typeInfo = await sdbHelper.GetTypeInfo(typeId, token); | ||
| if (typeInfo.Info.IsNonUserCode && getCommandType.HasFlag(GetObjectCommandOptions.JustMyCode)) |
There was a problem hiding this comment.
Wouldn't this add fields for non-my-code types? Should it moved to the beginning of the loop?
| System.Diagnostics.Debugger.Break(); | ||
| } | ||
| public int myField; |
There was a problem hiding this comment.
Add custom, and autogenerated properties too.
radical
commented
Aug 16, 2022
I'm not sure I understand. Is this correct? :
Also, this won't completely fix #43184, because this is still not returning the non-public members in |
radical
commented
Aug 16, 2022
Other than the comments here, and some from discussion offline, this LGTM, assuming the tests pass 👍 |
| var typeInfo = await sdbHelper.GetTypeInfo(typeId, token); | ||
| if (typeInfo.Info.IsNonUserCode && getCommandType.HasFlag(GetObjectCommandOptions.JustMyCode)) | ||
| break; | ||
There was a problem hiding this comment.
This can be right after int typeId = typeIdsIncludingParents[I];.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| <WasmAssemblySearchPaths Include="$(MicrosoftNetCoreAppRuntimePackRidDir)native"/> | ||
| <WasmAssemblySearchPaths Include="$(MicrosoftNetCoreAppRuntimePackRidDir)lib\$(NetCoreAppCurrent)"/> | ||
| <WasmAssemblySearchPaths Include="$(OutDir)"/> |
Co-authored-by: Ankit Jain <radical@gmail.com>
thaystg
commented
Aug 16, 2022
/backport to release/7.0-rc1 |
Started backporting to release/7.0-rc1: https://github.com/dotnet/runtime/actions/runs/2871012035 |
Do not show members from classes that don't have debug information if JMC is enabled.
Fixes#43184