Skip to content

Commit

Permalink
[runtime] Print more information about the exception for unhandled ma…
Browse files Browse the repository at this point in the history
…naged exceptions. (#11440)

This eases debugging when trying to figure out what went wrong.
  • Loading branch information
rolfbjarne authored May 5, 2021
1 parent a3cf2ea commit 50b68d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/coreclr-bridge.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
if (method == NULL)
method = "<unknown method";

fprintf (stderr, "%s threw an exception: %p\n", method, gchandle);
xamarin_assertion_message ("%s threw an exception: %p", method, gchandle);
fprintf (stderr, "%s threw an exception: %p => %s\n", method, gchandle, [xamarin_print_all_exceptions (gchandle) UTF8String]);
xamarin_assertion_message ("%s threw an exception: %p = %s", method, gchandle, [xamarin_print_all_exceptions (gchandle) UTF8String]);
}

typedef void (*xamarin_runtime_initialize_decl)(struct InitializationOptions* options);
Expand Down

0 comments on commit 50b68d4

Please sign in to comment.