[Mono-list] How do you debug?
Ivan Hawkes
blackhawk@ivanhawkes.com
Fri, 4 Jul 2003 16:23:26 +0100
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Friday 04 Jul 2003 3:29 pm, Marco Canini wrote:
> On Fri, 2003-07-04 at 13:24, J=F6rg Rosenkranz wrote:
> > Hi all,
> >
> > I have a question to all Mono developers out there:
> > How do you debug your programs?
> >
> > I have not managed to get the Mono debugger working and
> > all statements on the list regarding this subject are saying:
> > It's broken in CVS.
> >
> > So I have to debug a fairly complex app using Console.WriteLine...
> > Is there another way to search for bugs in Mono under Linux?
> >
> > Maybe someone can point me in the right direction ;-)
>
> sorry, but at the moment console.writeline is the only way :((
Are there any indications of how long it will be before it is operational=20
again? I am kicking off porting a largish (~20,000 lines) project to run=20
under Mono and I'm going to need a bit of debugging support ;->
The project uses multiple assemblies, ADO.NET, ASP.NET, XML SqlClient, and =
all=20
sorts of other stuff so it will be fairly involved to get it all working. O=
n=20
the plus side, the whole thing compiled with only 2 lines of code changed=20
(can't write to EventLog) but it doesn't run my simple test app, instead=20
complaining about type conversions:
=20
Unhandled Exception: System.InvalidCastException: Cannot cast from source t=
ype=20
to destination type
in <0x0007a> 00 System.Data.SqlClient.SqlDataReader:GetInt32 (int)
in <0x00189> 00 Interesource.Publish.Client.ContentList:.ctor=20
(System.Data.IDataReader,bool)
in <0x00012> 00 Interesource.Publish.Client.ContentList:.ctor=20
(System.Data.IDataReader)
in <0x000a2> 00 Interesource.Publish.Client.ContentProvider:ListContentItem=
s=20
(Interesource.Publish.Entities.ContentTypeKey)
in <0x0009e> 00 simpletest.SimpleTest:Main (string[])
Now, this code works on both Framework 1.0 and 1.1, so I'm guessing there i=
s a=20
little work needed on the type casting for Mono. Without a debugger it's=20
going to be a nightmare trying to get it all working, so I'm hoping that=20
debugger will be available again soon.
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iQIVAwUBPwWb8vr1e7bH1pzBAQIWXA//Rqt59/IhC4yjreRIFT8og7L+g02jZNom
+qHfJoKGzRd1WthU9EQiccfbbn8yxeIARohouqz4ADlQvs2FBDBVi899BEu30DMo
peCEumCCx8ljt24aLqCtAPCNF1m1YKRqmMQNAgQaS/ScVyF3VKPmYS3nGrTNa2Ty
3n/ogCJZsfevdZHJ/5Qkn+RhpIoejxBglMeJCOqtIqw8MU67UgaeVOPAi8eIPzOI
vrJzLHbJQg+jAalvpyDZEaWhjIHXTYbseXuPT4fqvUUuRnjW1gHNNv/XbEUCSeMN
6OfVLWOwa3rZABhgCEu2spJ61uTEbP2YhF+NPNpqXcY8a9GwCT2p+4HFaCDtnoI2
k9qXMiQfqIg89enVPAQH0Mva+1/MCWrW69vVYUePzVYXriOEnvdVI9YKVgG2YTvz
bmkUe6yy0+XOQX/Ym6D41ZjgCBiynU3avzkGlGjvxb+mt7MyAJsMvS+ca3zGHBjH
+TO/1Er2KRpzAxZCQsgtrtpuQYNLpnDPdLBah7AdGNJqDRL9FfAnP1LFqkS+CuWf
ti0eXwTdvCDHR+96QZQj0IILEVlhYviYA7EB4nYnDp36fQ4qRM301GsPTCfS2YSW
/Pw2bJDb4suYxWWWfGyMlqgc3Vmz7jTaLCxT41jdLl7GSL8q5H1KzqU08m/xTctK
UnmRblxEA1U=3D
=3D3jki
=2D----END PGP SIGNATURE-----