[Mono-list] debuging ...

Paolo Molaro lupus@ximian.com
Fri, 16 Aug 2002 11:51:54 +0200

On 08/15/02 Hans-Jürgen Schönig wrote:
> I have tried to use the "-g" flag of the C# compiler.
> Somehow it doesn't work because there seem to be some files missing:
> [hs@duron exception]$ mcs -g main.cs
> Compilation succeeded
> [hs@duron exception]$ ls
> main.cs  main.exe
> According to the debugging information on www.go-mono.org i think that 
> there should be some additional files such as main-debug.s or so.
> Can anybody help me? Is there some more information about using GDB and 
> Mono?

Go in the mcs/class/Mono.CSharp.Debugger directory and type:
mcs -o Mono.CSharp.Debugger.dll --target library *.cs
../../nant/NAnt.exe (in a windows box).

Copy the resulting Mono.CSharp.Debugger.dll to /usr/local/lib or where
you store the other assemblies (where mcs will be able to load them).
The debugging instructions on the web site are sadly out of date
in other respects, too.


lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better