debug(Group) messages are only printed
debug flag is turned on. These messages are also suppressed
when compiling code with the
optimize flag turned on. This tool
supports selective enabling of
in normal and debug modes.
To consult this tool API documentation, open in a web browser the link:
For general information on debugging, open in a web browser the following file and consult the debugging section of the User Manual:
This tool can be loaded using the query:
| ?- logtalk_load(debug_messages(loader)).
The tool provides two sets of predicates. The first set allows enabling
and disabling of all
debug(Group) messages for a given
component. The second set allows enabling and disabling of
debug(Group) messages for a given group and component.
Upon loading the tool, all debug messages are skipped. The user is then expected to use the tool API to selectively enable the messages that will be printed.
All source files are indented using tabs (a common setting is a tab width equivalent to 4 spaces).