View Full Version : Debugging leads to buggy code and longer hours?

01-28-2002, 12:15 AM
thats right! read it again!! im not crazy!

no,no,put down the stakes and hear me out!

i really am beginning to think that being able to debug your code for errors every two lines leads you to be sloppy since you "know" the debugger will save your ass every time and you can go through and fix as you go.

heres my backup,


i've been coding for what? 3-5+ years? im not sure anymore its been so long...

anyway i've notice when i code without ever debugging only using a compile to check for basic errors but NEVER running or debugging the code i get much better more efficient bugfree code

i just recently wrote 300+ lines of virtually BUG FREE(i've done this before) code and i have troughly tested it and found NO BUGS!NONE!!!, anyways i do this a lot when i have no choice but to, especially when im to lazy to wright a driver to test it as soon as im done, i get better thought out, more efficient, shorter code than when i do with the run and debug method!

anyone else have this problem? am i just insane?

01-28-2002, 12:17 AM
Most people get more bugs when debugging... You are indeed special. :D

01-28-2002, 03:13 AM
Isn't this kinda like saying a lack of fire-trucks in the neighborhood leads to less fires?

Buggy code leads to debugging. The debugging itself is pretty nice, since it makes the failings of the programmer dreadfully obvious, hence leaving room for improbement.

01-28-2002, 08:09 AM
Debugging makes buggy code? Somehow I doubt it...

Don't like the debugger? Don't use it.... (I, for one, would kill to have one with this compiler)

01-28-2002, 08:28 AM
If you want bugless code then THOROUGHLY design your program and check for all problems, come up with alternatives if something won't work and do paper runs before even typing one character.

Past that it should only be removing syntactic errors and finger slips. I love my debugger, but I love my lint even more. There's no high like getting 500 errors from your standard header file with the hello world program. :)

Not debugging simply because you think it will cause less bugs is dangerous. The last thing you want is for a customer to find your obscure bugs and complain to your boss about it.


01-28-2002, 10:56 AM
you misunderstand me im saying if i write the code without debugging it untill im finished it comes out better than if i debug it a lot during developement,


01-28-2002, 11:14 AM

That makes sense - you're not stopping and starting every couple minutes, so your code flows better with your train of thought...