FDBG is switched on and off with the predicates:
fdbg_on
fdbg_on(
:Options)
fdbg_on/[0,1]
can be called safely several times consecutively;
only the first call will have an effect.
fdbg_off
fdbg_on/1
accepts the following options:
file(
Filename,
Mode)
fdbg_output
to
the file called Filename opened in mode Mode. Mode
can either be write
or append
. The file specified is
opened on a call to fdbg_on/1
and is closed on a call to
fdbg_off/0
.
socket(
Host,
Port)
fdbg_output
to
the socket connected to Host on port Port. The specified
socket is created on a call to fdbg_on/1
and is closed on a call
to fdbg_off/0
.
stream(
Stream)
fdbg_output
to
the stream Stream. The specified stream remains open
after calling fdbg_off/0
.
If none of the above three options is used, the stream alias
fdbg_output
is attached to the current output stream.
constraint_hook(
Goal)
dispatch_global_fast/4
).
no_constraint_hook
If none of the above two options is used, the default is
constraint_hook(fdbg:fdbg_show)
.
labeling_hook(
Goal)
no_labeling_hook
If none of the above two options is used, the
default is labeling_hook(fdbg:fdbg_label_show)
.
For both constraint_hook
and labeling_hook
, Goal
should be a visualizer, either built-in (see FDBG Built-In Visualizers) or user defined. More of these two options may appear in
the option list, in which case they will be called in their order
of occurrence.
See FDBG Writing Visualizers for more details on these two options.