5 .. note:: For a complete list of CLI Debug commands refer to the Debug CLI section of the `Source Code Documents <https://docs.fd.io/vpp/18.07/clicmd.html>`_ .
\r
14 api trace [on|off][first <*n*>][last <*n*>][status][free][post-mortem-on][dump|custom-dump|save|replay <*file*>]
\r
19 Display, replay, or save a binary API trace.
\r
21 Declaration and Implementation
\r
22 -------------------------------
\r
24 **Declaration:** api_trace_command (src/vlibmemory/vlib_api_cli.c line 783)
\r
26 **Implementation:** api_trace_command_fn
\r
33 Clear trace buffer and free memory.
\r
34 Declaration and implementation
\r
36 **Declaration:** clear_trace_cli (src/vlib/trace.c line 519)
\r
38 **Implementation:** cli_clear_trace_buffer
\r
43 `Show Trace <../show/show.html#show-trace>`_
\r
51 Trace given number of packets.
\r
53 Declaration and Implementation
\r
54 -------------------------------
\r
56 **Declaration:** add_trace_cli (src/vlib/trace.c line 405)
\r
58 **Implementation:** cli_add_trace_buffer