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>`_ .
14 api trace [on|off][first <*n*>][last <*n*>][status][free][post-mortem-on][dump|custom-dump|save|replay <*file*>]
19 Display, replay, or save a binary API trace.
21 Declaration and Implementation
22 -------------------------------
24 **Declaration:** api_trace_command (src/vlibmemory/vlib_api_cli.c line 783)
26 **Implementation:** api_trace_command_fn
33 Clear trace buffer and free memory.
34 Declaration and implementation
36 **Declaration:** clear_trace_cli (src/vlib/trace.c line 519)
38 **Implementation:** cli_clear_trace_buffer
43 `Show Trace <../interface/show.html#show-trace>`_
51 Trace given number of packets.
53 Declaration and Implementation
54 -------------------------------
56 **Declaration:** add_trace_cli (src/vlib/trace.c line 405)
58 **Implementation:** cli_add_trace_buffer