You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[wasm[debugger] Support DebuggerTypeProxyAttribute(string) #77315
if ((ValueTypeId)monoParamTypeId != ValueTypeId.Type && (ElementType)monoParamTypeId != ElementType.String)
{
logger.LogDebug($"DebuggerTypeProxy attribute is only supported with a System.Type or System.String parameter type. Got {(ValueTypeId)monoParamTypeId}");
return -1;
}
We can see that for ProxyAttribute constructed with a string:
// added this to debugger-custom-view-test.cs:
[DebuggerTypeProxy("DebuggerTests.TheProxy")]
class WithProxyConstructedByString
{
public string Val1 {
get { return "string two"; }
}
}
[DebuggerTypeProxy("DebuggerTests.TheProxy")]
class WithProxyStructConstructedByString
{
public string Val1 {
get { return "string two struct"; }
}
}
We are getting, in response to CMD_TYPE_GET_CATTRS, a typeProxyTypeId
Activity
ilonatommy commentedon Jul 27, 2023
When we enable
ElementType.StringWe can see that for ProxyAttribute constructed with a string:
We are getting, in response to
CMD_TYPE_GET_CATTRS, a typeProxyTypeIdruntime/src/mono/wasm/debugger/BrowserDebugProxy/MonoSDBHelper.cs
Line 2308 in 84873e6
that exceeds the allowed id range in
runtime/src/mono/mono/component/debugger-agent.c
Line 1882 in 84873e6
e.g. in
runtime/src/mono/mono/component/debugger-agent.c
Line 2048 in 84873e6
id=76, type=2, ids [type]=27962056, GINT_TO_UINT(id)=76, ids [type]->len=55.
Error details:
So far I did not find the reason for ID values out of range for strings.
thaystg commentedon Aug 6, 2024
This is fixed by the new debugger.