tcp_trace(-OldValue, +On_or_Off)

Causes a trace of the major events. All trace output is written to user_error.

tcp_trace/2 raises a domain error if either of its arguments do not unify with either of the atoms on or off.