[Mono-list] Debugging mono with VS2010

Jonathan Chambers joncham at gmail.com
Fri Aug 10 15:48:03 UTC 2012


Francois,

You cannot debug managed code running in mono from within VS. You could use
MonoDevelop and the mono soft
debugger<http://www.mono-project.com/Mono:Runtime:Documentation:SoftDebugger>
to
debug the managed code at the same time that you are debugging the native
code in VS. If using MonoDevelop, I believe you will also need some minor
'hacks' to make it possible to debug an embedded mono. See detail in the
question here:
http://stackoverflow.com/questions/9582365/debugging-w-embedded-mono-how-to-set-breakpoints-in-c-sharp-code

Also, if you are using the soft debugger at the same time as being attached
with the native VS debugger you may run into issues with SEH exceptions
being raised internally by the soft debugger. See solution I mentioned
here<https://bugzilla.xamarin.com/show_bug.cgi?id=5963>about using
AddVectoredExceptionHandler rather than
SetUnhandledExceptionFilter.

Thanks,
Jonathan


On Fri, Aug 10, 2012 at 10:05 AM, Francois Schelling <
fschelling at square-enix-montreal.com> wrote:

> Hi,
>
> I've did a small setup to try mono and now I have a C++ program embedding
> and C# assembly.  I'm under Windows and using VS2010.
>
> So far, I'm able to launch my main app from VS, load my assembly, unload
> it, recompile it with another VS instance, and then reload the assembly on
> my main program without stopping my main program.  Now, I would like to be
> able to debug my assembly but I'm unable to do so.  I cannot attach my
> secondary VS to the process since it's not available.  On my main VS
> instance that is debugging the main program, I cannot debug the assembly,
> only the main c++ application.
>
> Anyone knows how to setup a mono debug environment with VS2010?
>
> Thanks!
> ___________________
> Francois Schelling
> Senior Programmer
> Square Enix Montréal
> fschelling at square-enix-montreal.com
>
>
>
>
>
>
>
> Francois
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs
> ______________________________________________________________________
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20120810/226e06d7/attachment.html>


More information about the Mono-list mailing list