Did you know ... Search Documentation:
Pack prolog_library_collection -- prolog/debug_ext.pl
PublicShow source
 dcg_debug(+Flag, :Dcg_0) is det
Write the first generation of Dcg_0 as a debug message under the given Flag.
 debug_call(+Flag:compound, :Goal_0) is det
 debug_dict(+Flag:compound, +Dict:dict) is det
 debug_phrase(+Flag:compound, :Dcg_0) is det
 debug_time(+Flag:compound, +Message:string) is det
 format_debug(+Flag:term, +Format:string) is det
 format_debug(+Flag:term, +Format:string, +Args:list(term)) is det
 format_debug(+Flag:term, +Out:ostream, +Format:string, +Arguments:list(term)) is det
Allows a line of text to be written to an output stream and -- optionally -- to a debug stream as well.

Format’ and ‘Arguments’ are used to compose a line of text. The newline character is automatically added at the end.

Debug information is displayed by calling ‘debug(Flag)’ (see library ‘debug’). ‘Flag’ can be an atom or a compound term.

 format_interval(+Index:nonneg, +Interval:nonneg) is det
 format_interval(+Index:nonneg, +Interval:nonneg, +Out, +Format:atom, +Argumentss:list) is det
Only emit a message with a certain interval.
 indent_debug(+Mode:oneof([-1,0,1]), +Flag:compound, +Format:string) is det
 indent_debug(+Mode:oneof([-1,0,1]), +Flag:compound, +Format:string, +Args:list(term)) is det
 json_write_debug(+Flag:term, +Dict:dict) is det
 json_write_debug(+Flag:term, +Out:ostream, +Dict:dict) is det

Undocumented predicates

The following predicates are exported, but not or incorrectly documented.

 format_debug(Arg1, Arg2, Arg3)
 format_debug(Arg1, Arg2, Arg3, Arg4)
 format_interval(Arg1, Arg2, Arg3, Arg4, Arg5)
 indent_debug(Arg1, Arg2, Arg3, Arg4)
 json_write_debug(Arg1, Arg2, Arg3)
 write_debug(Arg1)
 writeln_debug(Arg1)