Skip to content

Commit 4a6cebf

Browse files
committed
Initialize mono debugging support for displaying C# source file names, line numbers in stacktraces
1 parent c95b8f3 commit 4a6cebf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/monoclr/pynetclr.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <mono/jit/jit.h>
66
#include <mono/metadata/environment.h>
77
#include <mono/metadata/mono-config.h>
8+
#include <mono/metadata/mono-debug.h>
89
#include <mono/metadata/debug-helpers.h>
910
#include <mono/metadata/assembly.h>
1011
#include <glib.h>

src/monoclr/pynetinit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ PyNet_Args *PyNet_Init(int ext)
2929
}
3030
pn_args->shutdown_name = "Python.Runtime:Shutdown()";
3131

32+
mono_debug_init(MONO_DEBUG_FORMAT_MONO);
3233
pn_args->domain = mono_jit_init_version(MONO_DOMAIN, MONO_VERSION);
3334
mono_domain_set_config(pn_args->domain, ".", "Python.Runtime.dll.config");
3435

0 commit comments

Comments
 (0)