[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[] = {
"--soft-breakpoints",
"--debugger-agent=transport=dt_socket,address=127.0.0.1:10000"
};
mono_jit_parse_options(2, (char**)options);
mono_set_dirs(lib.c_str(), config.c_str());
mono_config_parse(NULL);
mono_debug_init(MONO_DEBUG_FORMAT_MONO);
mMonoDomain = mono_jit_init_version("Ares", "v4.0.30319");
mono_debug_domain_create(mMonoDomain);
MonoAssembly* assembly = mono_domain_assembly_open(mMonoDomain,
str.c_str());
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.
Thoughts?
--
Jeff
-------------- 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