Skip to content

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

Closed

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.

Activity

  1. ghost added
    untriaged
    on Feb 21, 2022
  2. self-assigned this
    on Feb 21, 2022
  3. removed
    untriaged
    on Feb 22, 2022
  4. ghost added
    in-pr
    on Mar 17, 2022
  5. ghost removed
    in-pr
    on May 13, 2022
  6. ghost locked as resolved and limited conversation to collaborators on Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

arch-wasmarea-Debugger-mono

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions