[Mono-dev] Mono Soft Debugger

Revan revanthedarth at gmail.com
Mon Apr 25 07:41:55 EDT 2011


I'm not sure whether this is a mono or monodevelop issue, sorry if the 
mail is mislocated.

I'm working on a Windows project that uses both C++ and C#. It uses C++ 
as the entry point and C# as a scripting engine. For C# dll files, the 
project uses mono. The project is working well so far but now I need to 
add debugging support.
I googled about it and here's what I've done so far:

->Created a new and simple C++ and C# projects, C++ uses mono to load C# 
dll.
->Made a simple addin for MonoDevelop.

If there is no problem in the C++/C# code, when I Run/Debug Application, 
the application works as planned, all printfs and Console.WriteLine's 
work OK.
When I make an error in C# code (ie, using a null pointer), the code 
works strange. The code works OK until the code I added. Then, the 
debugger stops doing this function (the next line is Console.WriteLine 
but it doesn't show up on the screen) and continues to do the C++ code 
(after mono_runtime_invoke).
When I add a breakpoint with mono_debugger_insert_breakpoint and run the 
project from Visual Studio, it can see the breakpoint at 
mono_runtime_invoke. But if I run it from MonoDevelop using Run/Debug 
Application, I see a blank console screen. Even the printfs before the 
breakpoint isn't shown. I think I have to send a signal to debuggee to 
step in or continue, but I couldn't find any tutorials to do so.

I can send the project and addin sources if desired.

Thanks in advance.


More information about the Mono-devel-list mailing list