[Mono-list] How do you debug?

Ivan Hawkes blackhawk@ivanhawkes.com
Fri, 4 Jul 2003 23:21:11 +0100


=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 04 Jul 2003 10:58 pm, Miguel de Icaza wrote:
> Hello,
>
> > Oh well, they say patience is a virtue. It's going to be pretty tedious
> > without one though.
>
> If it is of any relief, Linus has some refreshing words on the subject:
>
>
>         I happen to believe that not having a kernel debugger forces
>         people to
>         think about their problem on a different level than with a
>         debugger. I
>         think that without a debugger, you don't get into that mindset
>         where you
>         know how it behaves, and then you fix it from there. Without a
>         debugger,
>         you tend to think about problems another way. You want to
>         understand
>         things on a different _level_.
>
>
> From:
>     http://lists.insecure.org/linux-kernel/2000/Sep/1177.html
>
> Agreed, it is not the same.  But I think that he has a valid point when
> it comes to the way you look at bugs.
>
> We are working hard on a debugger, but there are some other priorities
> that we have to look at.
>
>
> Miguel

I tend to agree with Linus on this one, as for the first 10 years of my=20
programming career I didn't have or use any debuggers and I am certain it h=
as=20
made me a far better programmer today :-) I can usually model and run all t=
he=20
code in my head, before I whack it into the machine a skill some of the tea=
m=20
at my work don't seem to possess (mainly I reckon cause they fire up the=20
debugger too soon).

On the other hand 20,000 lines of someone elses code is a lot to grapple wi=
th=20
when porting from one OS to another and having a peak at code flow and=20
variable values can save masses of time. I'm only using Kate as my editor a=
s=20
well, so I already don't have Intellisense, context sensitive help, or the=
=20
"goto definition" function I love so much. Still, progress is incredibly=20
rapid, due mainly I'd say to two things:

1. The guys (work programming team who wrote the software I am about to=20
convert) did a top notch job on the coding.
2. You and the Mono team have done an incredible job matching the API with =
the=20
MS API. I have 17,000 lines already compiled and at least mostly working in=
 1=20
day and with only 4 lines of code changed (damn back slashes).

I'm pretty hopeful I can get the code across, and even get it performing we=
ll=20
too...now I gotta try and see if I can convince the company to Open Source =
it=20
once I have done the conversion *sigh*. It's a very neat content management=
=20
system BTW.
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iQIVAwUBPwX91/r1e7bH1pzBAQKRkA/9FsK9/ySmEpYcM+Lzioq88NG6hCREST1a
mP1V2Mh/IuZGFb6YjzVeDpZL1f6fJkiyjmvhJrlQvrt33YeYJ0TmdyyCFlzVwHWW
TEvBO241vGwH/vgE8JLb/dVoybuDskd+yfIx8kWF4s9w69VKJiJYo9SWMBb/x7Vc
efU3gpzVafrICbTzblMItituQJUWEK17TJvHr892hGVH8K/BChB+QMGj76EzeI3p
RTxZ5J08XcHWlTEen6AEV8VjBY8qRv+ata8t9wz0WRM13AqM8HfsVBzrY5LECf+a
c3tYoa9eXPjhyFToswDIjs6YGiX2kwmSjI2KUhuHirv+J7+Cm+SNAZKNzQzLpkBQ
VGsCf2I1yDaS2SNL570p2wNPuUFpqKAhAYkYnVnWuu3iH9mYzHgCAQvyVhYJKHjJ
GAiuj4fvVPRHRPw2bIcamn8QEP6EJQbHNsHLZZJ97fdEBAyQ9yelqoNdrgheIwDR
nlyN14l6ErWOfwL35I0X3wXdeyjvy4vTXU82Ds/MRnnVhlFq9LTR6CveRokLO9oQ
sIKvc5cil6ow/rX0HkK+nbJuZ4xFq1jt94jZBQdskx7yExAQVVMSVw+4JK/bQAKa
pvjBgzygxJ+8fIgZ8DigjN1GJCYvxZbSFXMJqFL74tCHFx+Lmwx4BeRcKTDUM2qk
HjKnlVr6EQk=3D
=3Da3xT
=2D----END PGP SIGNATURE-----