set_trace


Description:

[ Version ( since = "1.0.69" ) ]
public bool set_trace (bool trace) throws Error

enable or disable command traces

If the command trace flag is set to 1, then libguestfs calls, parameters and return values are traced.

If you want to trace C API calls into libguestfs (and other libraries) then possibly a better way is to use the external ltrace(1) command.

Command traces are disabled unless the environment variable LIBGUESTFS_TRACE is defined and set to @1.

Trace messages are normally sent to stderr, unless you register a callback to send them somewhere else (see guestfs_session_set_event_callback).

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error




2022 vala-language.org