diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2020-08-08 13:32:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-08 13:32:02 +0300 |
commit | 8a2dc9dc321e2a98b986c79eb6fd32ecfd054abc (patch) | |
tree | 9a8901526db9469ff6ec2d373bf22cfbe2a23d26 /sdks | |
parent | 61ba224a6e0258c43dbdb81f94e50ff2d0a97eae (diff) |
[wasm] [debugger] Support Exception Break on Debugger (handled and unhandled) (#20215)
* [wasm] [debugger] Support Exception Break on Debugger (handled and unhandled)
Based on https://github.com/mono/mono/pull/20142
* Add missing function to library_mono.js
Co-authored-by: thaystg <thaystg@users.noreply.github.com>
Co-authored-by: Larry Ewing <lewing@microsoft.com>
Diffstat (limited to 'sdks')
-rw-r--r-- | sdks/wasm/src/library_mono.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sdks/wasm/src/library_mono.js b/sdks/wasm/src/library_mono.js index 6569fd985d0..8e8f9080be2 100644 --- a/sdks/wasm/src/library_mono.js +++ b/sdks/wasm/src/library_mono.js @@ -1185,7 +1185,17 @@ var MonoSupportLib = { mono_wasm_fire_bp: function () { console.log ("mono_wasm_fire_bp"); debugger; - } + }, + + mono_wasm_fire_exception: function (exception_id, message, class_name, uncaught) { + MONO.active_exception = { + exception_id: exception_id, + message : Module.UTF8ToString (message), + class_name : Module.UTF8ToString (class_name), + uncaught : uncaught + }; + debugger; + }, }; autoAddDeps(MonoSupportLib, '$MONO') |