Skip to content

[wasm][debugger] Fix exception reason on evaluation of method that throws #69300

Description

@ilonatommy

In test: DebuggerTests.EvaluateOnCallFrameTests.EvaluateSimpleMethodCallsError for case evaluating: this.ParmToTestObjException.MyMethod()

is failing because:

(2,43): error CS1061: 'string' does not contain a definition for 'MyMethod' and no accessible extension method 'MyMethod' accepting a first argument of type 'string' could be found (are you missing a u    sing directive or an assembly reference?)

but should fail because ParmToTestObjException threw an exception.

Script used to compile the expression:

string this_ParmToTestObjException_fee35 = "System.Exception: error2"; return (this_ParmToTestObjException_fee35.MyMethod() );

Suggested in: #66654 (comment)

Metadata

Metadata

Assignees

Labels

arch-wasmWebAssembly architecturearea-Debugger-monoenhancementProduct code improvement that does NOT require public API changes/additions

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions