K
Kenny McCormack
Then you're in denial or a fool.
I vote: Both.
Then you're in denial or a fool.
I have a few times found it very hard to understand code, and been
enlightened by seeing it in action under a debugger. It doesn't seem
very surprising to me that this should be helpful. Do you never
find code hard to understand?
Chris Dollin said:Richard said:Or, I decided a long time ago that a debugger serves a useful purpose?
Did that cross your mind?
I meant exactly what I said: whether or not a debugger serves a useful
purpose, or what you decided, if you can never imagine not using one [etc],
your imagination needs a good workout. It's a comment about your power
of imagination, not about debuggers.
Nick Keighley said:most people are claiming *they* don't use debuggers (much).
Isn't possible that different people do things in different ways?
I'm doing that. I don't use a debugger much
what's wrong with a backtrace on the core dump? I can see
the point of pointing in a breakpoint if some parameter goes hay-wire
after several hours. That seems to be rare in my environment.
I have caught bugs of the "how the heck did *that* get set to *that*
value? (It read it from the database).
never done that. Why can't they read the code?
I may have done that once. Seems a bit odd to me. Changing
the value of parameters seems odd to me...
the "beneath them" crack is getting a bit old.
I must astonish you then
nope.
ah well mines only a third that size.
never done this. I read the code.
Richard Heathfield said:Richard Tobin said:
Yes, sometimes. And yes, I used to use a debugger in an attempt to
understand such code. Perhaps this works for some people, but it never
really worked for me.
[/QUOTE]I have a few times found it very hard to understand code, and been
enlightened by seeing it in action under a debugger. It doesn't seem
very surprising to me that this should be helpful. Do you never
find code hard to understand?
Yes, sometimes. And yes, I used to use a debugger in an attempt to
understand such code. Perhaps this works for some people, but it never
really worked for me.
How the hell can it NOT work for you?
How in gods name can seeing the code stepping though NOT be easier than
reading a print out?!?!?!?!?
Even as an additional view in conjunction
with the printout it can ONLY be easier.
I really have had enough of some of the ludicrous claims here.
Why?!?!?!?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Yes, sometimes. And yes, I used to use a debugger in an attempt to
understand such code. Perhaps this works for some people, but it never
really worked for me.
Richard said:How in gods name can seeing the code stepping though NOT be easier than
reading a print out?!?!?!?!? Even as an additional view in conjunction
with the printout it can ONLY be easier.
Chris said:Richard said:Or, I decided a long time ago that a debugger serves a useful purpose?
Did that cross your mind?
I meant exactly what I said: whether or not a debugger serves a useful
purpose, or what you decided, if you can never imagine not using one [etc],
your imagination needs a good workout. It's a comment about your power
of imagination, not about debuggers.
never done that. Why can't they read the code?
Chris said:I already knew that.
Then, with all due respect and independently of any abilities I
might or might not have, your imagination needs a good workout.
jacob navia said:It is impossible for any human to debug a program written by others
without a debugger, of course if the program has a certain size
(bigger than, say, 1500 -2000 lines)
It is impossible for any human to debug a program written by others
without a debugger, of course if the program has a certain size
(bigger than, say, 1500 -2000 lines)
santosh said:jacob navia wrote:
How did they program before debuggers then?
Ben said:You sound so provincial, as if your own preferences are the only
possible correct ones. Indeed, I have heard plenty of
programmers say that the first thing they do with new code is to
step through it. But that is not what plenty of other
programmers prefer. Personally, I use a good programmer's editor
to follow the code flow. Often, I find that the *possible*
control flow is more interesting than the *specific* control flow
in any given instance.
jacob said:You are debugging programs that have a well defined control flow, not
event driven
The problem is that you need to see the sequence of events, then,
when using a debugger, you will notice that at *that* line,
an interrupt could happen that trashes some register, making
your variable change value, what makes the program go into
the path it could NEVER had taken!
Ben said:You sound so provincial, as if your own preferences are the only
possible correct ones. Indeed, I have heard plenty of
programmers say that the first thing they do with new code is to
step through it. But that is not what plenty of other
programmers prefer. Personally, I use a good programmer's editor
to follow the code flow. Often, I find that the *possible*
control flow is more interesting than the *specific* control flow
in any given instance.
Debug, or understand? I Both cases, I'd start of by adding unit testsjacob said:It is impossible for any human to debug a program written by others
without a debugger, of course if the program has a certain size
(bigger than, say, 1500 -2000 lines)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.