[Mono-dev] Embedded Mono debugging

Jeff Ward jeff at fuzzybinary.com
Fri Feb 3 23:12:36 UTC 2012

I've been trying to get debugging working with my application that's using
embedded mono with some trouble, but I think I'm on the last legs here.

Here's what I'm doing (basically)

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

mono_set_dirs(lib.c_str(), config.c_str());

mMonoDomain = mono_jit_init_version("Ares", "v4.0.30319");

MonoAssembly* assembly = mono_domain_assembly_open(mMonoDomain,

MonoDevelop now connects fine, but the problem is when I hit a breakpoint
or when I halt execution from within MonoDevelop, I get an access
violation.  Why is that?  How do I get this to work.

As an asside, I am generating .mdbs.  I can't find how to redirect Mono's
stderr to my output window (something else I'd love help with) so I have no
idea if there are any errors loading debug info.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120203/aa6a564b/attachment.html>

More information about the Mono-devel-list mailing list