Description
Static fields evaluation works only in an instance method. Otherwise, we have to address the field with the fill namespace. It should not be required as the field belongs to locals.
- Static fields in DIMs:
Reproduction steps:
in interface IDefaultInterface
in src\mono\wasm\debugger\tests\debugger-test\debugger-test.cs we have a static field: defaultInterfaceMember
. Its visibility in interface's method is tested in EvaluateLocalsInDefaultInterfaceMethodStatic
.
Current behavior:
When we useEvaluateOnCallFrameAndCheck
with defaultInterfaceMember
as evaluated value inside of interface's method, it fails. We would need to pass the full name: IDefaultInterface.defaultInterfaceMember
to get the right value. In this location we should have access to the static fields without referencing to it with a full name.
Expected behavior:
EvaluateOnCallFrameAndCheck
with defaultInterfaceMember
passed (without interface name) should result in "defaultInterfaceMember".
- Static fields in a static class evaluated from a static method of this class.
- Static fields in an instance class, evaluated from a static method of this class.