Which (C) debugger to use?

Stephen Carlson scc at rlgvax.UUCP
Tue Oct 2 08:20:33 AEST 1990


In article <998 at nlsun1.oracle.nl> bengsig at oracle.nl (Bjorn Engsig) writes:
>If you have dbx, use that.  The syntax and semantics of sdb are so strangely
>interwoven that it is a pain.  E.g: 'xyz' prints the value of xyz, 'i' issues
>the i command even if there is an i variable.

Two things you could do for sdb:

1) Use 'i/' to print the value of 'i'; after being bitten a few times
   (especially with a variable named 'c'), you learn your lesson.  Just
   like the old C problem: if (a = b) ...

2) Use 'ii' instead of 'i'.  Searching for the variable 'i' in most editors
   is a royal pain.  The vi locution \<i\> is almost as annoying to type as
   it is to have the simple search confound the 'i' variable with, say, the
   'if' and the 'while' keywords.  Searching for 'ii' will not have either
   problem.

On my system, dbx has a fatal flaw: it does not exist.  But given a choice,
since sdb has a higher learning curve than most debuggers (except for adb),
I wouldn't endorse it. 

-- 
Stephen Carlson            | ICL OFFICEPOWER Center
scc at rlgvax.opcr.icl.com    | 11490 Commerce Park Drive
..!uunet!rlgvax!scc        | Reston, VA  22091



More information about the Comp.unix.programmer mailing list