[Mono-list] Using GDB with C#

Rodrigo Kumpera kumpera at gmail.com
Wed Dec 5 11:14:37 EST 2007

GDB is not  capable of debuging managed code since you need to way it to be
compiled before actually setting a breakpoint. I set breakpoints at the
magic_trampoline and mono_jit_compile_method, I debug the assembly of it
then. This approach, of course, only suits if you need to debug a runtime
related issue.

For application code you should use MDB

On Dec 5, 2007 1:42 PM, <dsmithers at talktalk.net> wrote:

> I am trying to debug C# compiled using gmcs -debug with GDB.
> I can run my programme under GDB, but it doesn't see any debug symbols,
> and can't set break points or show backtrace.
> I am running ubuntu 7.04 with GDB 6.6-debian.
> I have added a .gdbinit as described on the mono website (
> http://www.mono-project.com/Debugging).
> Am I missing something really obvious?
> thanks
> dan
> _______________________________________________
> 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/20071205/4b8e17e2/attachment.html 

More information about the Mono-list mailing list