[Mono-list] soft debugger and embedded API

Jonathan Mitchell jonathan at mugginsoft.com
Wed Mar 18 10:38:25 UTC 2015


I am trying to connect via the soft debugger to an app that uses the embedded API.

The debuggee is on OS X, the debugger is on a windows machine VM at
The debugee has .mdb files available that reference symbol source locations on the debugger.

I have been guided by the following so far:

On the debug I do my setup like so prior to loading any app specific assemblies:

    _monoDomain = mono_jit_init_version(domainName, version);

    const char* jit_options[] = {
    mono_jit_parse_options(2, (char**)jit_options);

I have configured Xamarin Studio to use the soft debugger and when it is listening I can telnet into
However I don’t get any sort of debug activity when I run the debugee with the debugger listening.

Any pointers would be appreciated.

Two points:

1. The link above states : If the Mono client can't connect to the debugging server when it starts up, it will call exit, which is no good.
I don’t see this behaviour. The app runs whether the debug server is up or not.

2. A source note for mono_debug_init at https://github.com/mono/mono/blob/adb9681393a8dfec2ca9c2e8c5a4ed72d663878d/mono/metadata/mono-debug.c#L121

 * This method must be called after loading corlib,
 * but before opening the application's main assembly because we need to set some
 * callbacks here.

Is the prior call to  mono_jit_init_version enough to satisfy the above condition?



More information about the Mono-list mailing list