[Mono-dev] Debugging embed mono

Jonathan Chambers joncham at gmail.com
Thu Aug 1 21:45:11 UTC 2013


Hi,

I have worked around this, but have not formatted the changes for upstream
at this point. Take a look at these changes. They may need adjusted a bit,
but will allow you to debug with MonoDevelop soft debugger and the VS
debugger for C/C++ at the same time.

https://github.com/Unity-Technologies/mono/commit/e9f9f7170914c5caaff3e95e09f6f58ecced2a10
https://github.com/Unity-Technologies/mono/commit/4c2e1db60ccb38e792545d595d85b12ff309a919
https://github.com/Unity-Technologies/mono/commit/bd7e534aa7da49b89787b8c1b40e165a34c0e960
https://github.com/Unity-Technologies/mono/commit/b885251a83969d243deabc56bb3d1495d4a971dc

Thanks,
Jonathan


On Thu, Aug 1, 2013 at 3:17 AM, Bartosz Przygoda <bprzygoda at gmail.com>wrote:

> You are correct in assumption that this is the way soft debugger handles
> breakpoints (it generates segfault). One solution might be to attach
> visuals tudio debugger *after* breakpoint has been hit.
>
> I'm interested in other ways, as well.
>
>
> On 1 August 2013 08:56, Jonathan Lima <greenboxal at gmail.com> wrote:
>
>> Let's say I have an application running an embed mono and I'm debugging
>> this application with VisualStudio.
>> Also I have Monodevelop connected through the soft debugger on this embed
>> mono instance.
>>
>> When I set a breakpoint managed code on Monodevelop a native exception is
>> thrown on VisualStudio(Access Violation Exception) and I can't debug both
>> native and managed code on the same time. Probably this exception is how
>> mono debugger manages breakpoints.
>>
>> My question is, is there a way to debug the embed engine(and the rest of
>> my native code) and the managed code at the same time?
>>
>> Thanks for your time,
>> Jonathan Lima
>>
>> _______________________________________________
>> Mono-devel-list mailing list
>> Mono-devel-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
>>
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130801/72b59ee8/attachment.html>


More information about the Mono-devel-list mailing list