[Mono-list] Debugging with mdb

Nikki Locke nikki at trumphurst.com
Mon May 15 10:31:08 EDT 2006

I don't seem to be able to get any sense out of mdb. I try the following...

[nikki at router test]$ mcs -debug -codepage:1252 -optimize- -delaysign- -target:winexe -out:Old.exe -r:"System.dll" 
-r:"System.Data.dll" -r:"Mono.Data.SqliteClient.dll" Test.cs
[nikki at router test]$ mdb Old.exe
Mono Debugger
(mdb) break Main
ERROR: No program to debug.
(mdb) run
Starting program: Old.exe
Thread @1 stopped at #0: 0xb7dde001.
0xb7dde001      ret
(mdb) kill
<console stops responding at this point>

I log in on another console as root, and do...

[root at router test]# ps aux | fgrep mono
nikki     5097  0.4  2.1 32052 11044 pts/4   Sl+  15:19   0:00 mono --debug /usr/lib/mono/1.0/mdb.exe Old.exe
nikki     5168  0.0  0.1  6032  828 ?        Ts   15:19   0:00 /usr/bin/mono --inside-mdb Old.exe
root      5648  0.0  0.1  5200  580 pts/7    S+   15:20   0:00 fgrep mono

I have to kill -9 the /usr/bin/mono process.

Nikki Locke, Trumphurst Ltd.      PC & Unix consultancy & programming

More information about the Mono-list mailing list