Skip to content

[wasm][debugger] Enable onCallFrame evaluation of static fields in classes/interfaces from a static method. - #70560

Merged
ilonatommy merged 11 commits into
dotnet:mainfrom
ilonatommy:static-fields-class&interface-70135
Jul 8, 2022
Merged

ilonatommy merged 11 commits into
dotnet:mainfrom
ilonatommy:static-fields-class&interface-70135

Conversation

@ilonatommy

Copy link
Copy Markdown
Member

Fixes #70135.

Read commit history to understand the changes.

Changes:

  • Adding prefix of current stack frame's namespace when trying to evaluate a static. This fixes among others: DIM problem where we did not see statics of the Interface from inside the DIM.
  • Structuring struct tests and renaming them, it was a bit messy before.

@ilonatommy ilonatommy added arch-wasm WebAssembly architecture area-Debugger-mono labels Jun 10, 2022
@ilonatommy ilonatommy added this to the 7.0.0 milestone Jun 10, 2022
@ilonatommy
ilonatommy requested review from radical and thaystg June 10, 2022 13:31
@ilonatommy ilonatommy self-assigned this Jun 10, 2022
@ilonatommy
ilonatommy requested a review from marek-safar as a code owner June 10, 2022 13:31
@ghost

ghost commented Jun 10, 2022

Copy link
Copy Markdown

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes #70135.

Read commit history to understand the changes.

Changes:

  • Adding prefix of current stack frame's namespace when trying to evaluate a static. This fixes among others: DIM problem where we did not see statics of the Interface from inside the DIM.
  • Structuring struct tests and renaming them, it was a bit messy before.
Author: ilonatommy
Assignees: ilonatommy
Labels:

arch-wasm, area-Debugger-mono

Milestone: 7.0.0

Comment thread src/mono/wasm/debugger/BrowserDebugProxy/MemberReferenceResolver.cs Outdated
Comment thread src/mono/wasm/debugger/BrowserDebugProxy/MemberReferenceResolver.cs Outdated
Comment thread src/mono/wasm/debugger/DebuggerTestSuite/EvaluateOnCallFrameTests.cs Outdated
Comment thread src/mono/wasm/debugger/DebuggerTestSuite/EvaluateOnCallFrameTests.cs Outdated
Comment thread src/mono/wasm/debugger/BrowserDebugProxy/MemberReferenceResolver.cs Outdated
Comment thread src/mono/wasm/debugger/BrowserDebugProxy/MemberReferenceResolver.cs Outdated
Comment thread src/mono/wasm/debugger/BrowserDebugProxy/MemberReferenceResolver.cs Outdated
Comment thread src/mono/wasm/debugger/BrowserDebugProxy/MemberReferenceResolver.cs
@ghost ghost added needs-author-action An issue or pull request that requires more info or actions from the author. and removed needs-author-action An issue or pull request that requires more info or actions from the author. labels Jun 21, 2022
@ilonatommy

ilonatommy commented Jun 21, 2022 •

Copy link
Copy Markdown
Member Author

Converting to draft till the PR won't be divided into: fixed errors in old test changes + new tests PR (here) and test refactoring to bundle them more nicely together in a separate PR.

ToDo in the follow-up PR:

  1. renaming tests so that they are easily understandable, EvaluateNonStaticClassWithStaticFields -> EvaluateStaticFieldsInInstanceClass, EvaluateStaticClass -> EvaluateStaticFieldsInStaticClass
  2. renaming test fields and props, this "1" at the end is not needed.
  3. bundling old tests and new tests from this PR and removing these that are duplicated.
  4. no changes to the code outside of tests.

@ilonatommy
ilonatommy marked this pull request as draft June 21, 2022 17:03
@ilonatommy
ilonatommy marked this pull request as ready for review June 24, 2022 14:58
@radical
radical dismissed their stale review June 27, 2022 21:11

the PR has been updated since then

@ilonatommy
ilonatommy merged commit 0ab2c1e into dotnet:main Jul 8, 2022
ilonatommy added a commit that referenced this pull request Jul 19, 2022
… (#71827)

* Renaming.

* Remoe duplicated testcases.

* Added missing awaits.

* Testing expressions with spaces, fixed indentation

* Applied @radical's comments.
@ghost ghost locked as resolved and limited conversation to collaborators Aug 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasm WebAssembly architecture area-Debugger-mono

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[wasm][debugger] Enable onCallFrame evaluation of static fields in classes/interfaces from a static method.

3 participants