Did you know ... | Search Documentation: |
![]() | Pack log4p -- prolog/log4p.pl |
The following predicates are re-exported from other modules
nodebug(_)
removes all
topics. Gives a warning if the topic is not defined unless it is
used from a directive. The latter allows placing debug topics at
the start of a (load-)file without warnings.
For debug/1, Topic can be a term Topic > Out, where Out is either a stream or stream-alias or a filename (atom). This redirects debug information on this topic to the given output.
Module:Name/Arity
(or `//Arity for non-terminals),
both the module and arity may be omitted in which case Pred refers
to all matching predicates. PortSpec is either a single port
(call
, exit
, fail
or redo
), preceded with +
or -
or a
list of these. The predicate modifies the current trace
specification and then installs a suitable wrapper for the predicate
using wrap_predicate/4. For example:
`
?-
trace(append)
.
% lists:append/2: [all]
% lists:append/3: [all]
% append/1: [all]
true.
?- append([a,b], [c], L)
.
T Call: lists:append([a, b], [c], _10478)
T Call: lists:append([b], [c], _11316)
T Call: lists:append([], [c], _11894)
T Exit: lists:append([], [c], [c])
T Exit: lists:append([b], [c], [b, c])
T Exit: lists:append([a, b], [c], [a, b, c])
L = [a, b, c].
?- trace(append, -all)
.
% lists:append/2: Not tracing
% lists:append/3: Not tracing
% append/1: Not tracing
Module:Name/Arity
(or `//Arity for non-terminals),
both the module and arity may be omitted in which case Pred refers
to all matching predicates. PortSpec is either a single port
(call
, exit
, fail
or redo
), preceded with +
or -
or a
list of these. The predicate modifies the current trace
specification and then installs a suitable wrapper for the predicate
using wrap_predicate/4. For example:
`
?-
trace(append)
.
% lists:append/2: [all]
% lists:append/3: [all]
% append/1: [all]
true.
?- append([a,b], [c], L)
.
T Call: lists:append([a, b], [c], _10478)
T Call: lists:append([b], [c], _11316)
T Call: lists:append([], [c], _11894)
T Exit: lists:append([], [c], [c])
T Exit: lists:append([b], [c], [b, c])
T Exit: lists:append([a, b], [c], [a, b, c])
L = [a, b, c].
?- trace(append, -all)
.
% lists:append/2: Not tracing
% lists:append/3: Not tracing
% append/1: Not tracing
The following predicates are exported, but not or incorrectly documented.