Skip to content

[wasm][debugger] Support optional parameters in external methods #65670

Description

@ilonatommy

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions