[Mono-dev] Newbie needing mdb help

Wade Maxfield wmaxfield at gmail.com
Tue Mar 28 16:58:44 EST 2006


  I have a C# Windows Forms application running under Mono on CentOs
3.4(with yum updates) under VMware, and on Ubuntu.  It was compiled
with
Borland c# 1.0, and runs on the linux platform, though is is not a complete
implementation of our final.  However it is very promising.

  It is compiled for debugging on the windows platform, using Microsoft .NET
1.1.  I've debugged it under Borland.  It debug just fine.

  Fonts aren't right, but I'm sure that can be managed.

   Also updates don't work quite right.  If I hide a window (Hide()) and
show a window (show()), the user defined control does not update.   Neither
does the native button control.  Putting the window behind another window
and then bringing it forward forces updates.  Perhaps the invalidate
function needs to be called for the whole window? (I'm leaning on old
windows experience here, don't know what I am talking about)

  I want to see if I can single step the code under linux.

The mdb is 0.12 on centos.  The entire folder tree was copied over to the
linux machine, and debugging starts in the directory that contains the
source code.

  I've RTFM, Googled, and tried all kinds of things, and can't get lines to
list in MDB.  Xdevelop doesn't work with it either, but that is an Xdevelop
issue, I'm sure.

  Can someone give me  what I'm missing?  I'm sure I'm missing a simple
step.  A stupid user trick.

  Here is an example flub:

[root at cfwrd1lab Remote DSP Monitor]# mdb -run bin/Debug/RemoteDspMonitor.exe
Mono Debugger
Starting program: bin/Debug/RemoteDspMonitor.exe
** Message: WARNING: Running mdb as root may be a problem because setuid()
and
seteuid() do nothing.
See http://primates.ximian.com/~martin/blog/entry_150.html for details.
Thread @1 stopped at #0: 0x081bdfd5.
0x081bdfd5      ret
(mdb) b WinForm:WinForm()
ERROR: Expected filename:line
syntax error, expecting end-of-file DOT DOTDOT ASSIGN OPAREN OBRACKET
QUESTION ARROW
ERROR: Mono.Debugger.Frontend.BreakCommand, Token: COLON   : Parsing error
ERROR: Cannot parse arguments
ERROR: No such method: `WinForm:WinForm()'
(mdb) b WinForm
ERROR: No symbol `WinForm' in current context.
(mdb) b WinForm.WinForm
ERROR: No such variable or type: `WinForm'
(mdb) b WinForm.Dispose
ERROR: No such variable or type: `WinForm'
(mdb) b WinForm.Dispose()
ERROR: No such variable or type: `WinForm'
(mdb) b Remote_DSP_Monitor.WinForm
ERROR: No such variable or type: `Remote_DSP_Monitor'
(mdb) namespace Remote_DSP_Monitor
No such command `namespace'.
(mdb) list
ERROR: Current location doesn't have source code
(mdb) b Remote_DSP_Monitor:WinForm.WinForm
ERROR: Expected filename:line
syntax error, expecting end-of-file DOT DOTDOT ASSIGN OPAREN OBRACKET
QUESTION ARROW
ERROR: Mono.Debugger.Frontend.BreakCommand, Token: COLON   : Parsing error
ERROR: Cannot parse arguments
ERROR: No such method: `Remote_DSP_Monitor:WinForm.WinForm'
(mdb) b WinForm.WinForm.WinForm()
ERROR: No such variable or type: `WinForm.WinForm'
(mdb)quit


   NOTE:  quit simply hangs at this point, I have to have the terminal
window killed by a click on the 'x' in the corner.

thanks for your help,
wade
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060328/c9ae021e/attachment.html 


More information about the Mono-devel-list mailing list