Re: What is wrong with Ada?

On Apr 11, 5:40 am, Jean-Pierre Rosen <r...@xxxxxxxxx> wrote:
Chad R. Meiners a écrit :> I disagree. Sometimes trace messages add line noise and maintaince
requirements to the code base,

Trace messages are put just to check an hypothesis, and removed
immediately afterwards. Certainly not kept in configuration, and limited
to a couple of lines!

I always keep important hypothesis (trace statements) around during
development because a particular trace sequence for a particular bug
does not ensure full coverage of the the algorithm. I have needed the
same trace statement more than once at different times in some
software life cycles.

and it is much easier to trace through
the algorithm step by step (using conditional breaks when necessary).

My experience is that recompiling (generally a single body where you
added the trace) is much faster than starting the debugger, setting
breakpoints, skipping lots of unnecessary breaks, and so on.

And my experience is that starting a debugger is faster than inserting
some verbose trace statements, and then recompiling. If you are
skipping a lot of unnecessary breaks, you are not using the debugger

Moreover, a trace message gives you exactly the information you need,
while interpreting a particular (complicated) structure from a debugger
is generally quite difficult. Did you ever try to understand an ASIS
"Element" ?

I completely agree. For <b>some</b> cases, traces messages provide
the right information in the most efficient and effective way.
However, I do not accept that trace messages are <b>always</b> a
better way to find bugs than using a debugger.


Relevant Pages

  • Re: Please check my sanity regarding this backtrace
    ... At the bottom of the trace is the following which I ... and registers are a comparatively scarce resource. ... When the program crashes, the debugger tries to make sense ...
  • Re: AppleWin Debugger & AppleWin Ports
    ... limited screen space, and no mouse support. ... Once we switch over to the ... current debugger would be all that user-friendly on a zarus. ... when I get it to trace thru ...
  • Re: Is Linux A Feasible Platofrm For Professional DAW work ?
    ... I could have found it by running it in the debugger and looking at the open ... But I found it with a trace. ... is unlikely except maybe for beta code, ... You still get to see routine names for calls to libraries and the kernal, ...
    ... At least the app closes when the debugger is stopped. ... TRACE() information in the threads indicate that the ... This does not consume CPU cyles while it is waiting. ...
  • Re: What is wrong with Ada?
    ... I always keep important hypothesis (trace statements) around during ... assertions in my programs (and they call a "failure" procedure if they ... And my experience is that starting a debugger is faster than ...