[Mono-list] Debugging C# code with Embedded Mono?
Michael Hutchinson
m.j.hutchinson at gmail.com
Fri Mar 2 00:08:59 UTC 2012
On 29 February 2012 11:38, efontana <eric at fontanas.net> wrote:
> I'm using Embedded Mono (works great), my question now is, can I somehow use
> MonoDevelop to attach
> to the native executable and then open open C# source lines and set
> breakpoints/single step, etc.
>
> I realize that I can use basic GDB stuff like here:
> http://www.mono-project.com/Debugging#Debugging_with_GDB
>
> But I'm looking for C# source level debug?
>
> It's a major pain for me to build MonoDevelop to try it out on Linux (it
> needs dozens if not hundreds) of
> packages.
>
> Will this work?
Yes. Firstly your embedding app needs to initialize the debugger by
passing agent args to Mono, then you need to make MD connect to it.
For the "productized" version you'd need a MD addin but you can work
around that for testing, see MONODEVELOP_SDB_TEST
--
Michael Hutchinson
http://mjhutchinson.com
More information about the Mono-list
mailing list