Sample external function with optional parameter:
public string[] Split (char separator, int count, StringSplitOptions options = System.StringSplitOptions.None);
Reproduction:
var strToSplit = "ab-cd";
How to test in debugger watch:
strToSplit.Split('-', 1);
strToSplit.Split('-', 1, System.StringSplitOptions.None);
Test in OnCallFrameTests:
EvaluateMethodWithLinq
How to fix:
GetMethodInfo should return not-null value for external methods. Either fix loading symbols
|
if (urlSymbolServerList.Count == 0) |
or fix saving and extracting method:
|
var method = asm.GetMethodByToken(methodToken); |
.
Make sure that Linq functions work both in headless mode in tests and manually in browser.
Sample external function with optional parameter:
public string[] Split (char separator, int count, StringSplitOptions options = System.StringSplitOptions.None);
Reproduction:
How to test in debugger watch:
strToSplit.Split('-', 1);strToSplit.Split('-', 1, System.StringSplitOptions.None);Test in OnCallFrameTests:
EvaluateMethodWithLinqHow to fix:
GetMethodInfoshould return not-null value for external methods. Either fix loading symbolsruntime/src/mono/wasm/debugger/BrowserDebugProxy/MonoProxy.cs
Line 1081 in 4fd5132
runtime/src/mono/wasm/debugger/BrowserDebugProxy/MonoSDBHelper.cs
Line 781 in 4fd5132
Make sure that Linq functions work both in headless mode in tests and manually in browser.