:- use_module(library(debug)).(can be autoloaded)
debugging(+Topic)may be used to perform more complex debugging tasks. A typical usage skeleton is:
( debugging(mytopic) -> <perform debugging actions> ; true ), ...
The other two calls are intended to examine existing and enabled debugging tokens and are typically not used in user programs.