ctrace
[options] [file]Debug a C program. ctrace reads the C source file and writes a modified version to standard output. Common options are -f
and -v
. ctrace also accepts the cc options -D
, -I
, and -U
.
-e
Print variables as floating point.
-f
functionsTrace only the specified functions.
-l
nFollow a statement loop n times (default is 20).
-o
Print variables in octal.
-p
sPrint trace output via function s (default is printf
).
-P
Run the C preprocessor before tracing.
-Q
cPrint information about ctrace in output (if c = y
) or suppress information (if c = n
, the default).
-r
fileChange the trace function package to file (default is runtime.c).
-s
Suppress certain redundant code.
-t
nTrace n variables per statement (default is 10; maximum is 20).
-u
Print variables as unsigned.
-v
functionsDo not trace the specified functions.
-V
Print version information on standard error.
-x
Print variables as floating point.