[Mono-osx] Debugging
Seth A. Roby
seth.roby at kaseya.com
Tue Jun 24 12:18:33 EDT 2008
I'm trying to get a real debugging environment set up. Right now, I'm
working in gdb, but the backtraces need the custom mono_backtrace
macro, variable values are annoying to find, and other such nuisances.
This would be better if I could hand gdb a dwarf file and have it read
in my symbols. Looking around, I came across:
From <http://www.go-mono.com/docs/index.aspx?tlink=8@man%3aoldmono(1)>
> DEBUGGING FORMATS
> The following debugging formats are currently supported:
> stabs
> Writes out stabs debug information.
> dwarf
> Writes out dwarf debug information.
> mono
> Use a symbol file which has been created by MCS. It can be used to
> get source lines in stack traces.
> The "stabs" and "dwarf" formats support the following options:
>
> filename=FILENAME
> Write debugging information into FILENAME. This file must be run
> through the assembler to create an object file.
> objfile=FILENAME
> When automatically assembling the symbol file, write the resulting
> object file into FILENAME.
But this doesn't seem to work with my mono (which makes sense; I'm
referencing the 'oldmono' man page, here). But I can't find out a way
to make the "new" mono dump out dwarf data (which would be very handy
for getting information via gdb, Shark, Instruments, etc).
Does such an option exist?
I also see (sparse) documentation online for the mdb debugger, but
it's not included on my build and I can't seem to find where to
download it online.
What are other people using for debugging purposes?
Seth A. Roby
Software Developer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3461 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-osx/attachments/20080624/461ec145/attachment.jpg
-------------- next part --------------
27130 B Paseo Espada, Suite 523
San Juan Capistrano, CA 92675
Corporate: +1.415.694.5700 X1253
Mobile +1.714.675.0005
Email: Seth.Roby at Kaseya.com
More information about the Mono-osx
mailing list