Using Trace in Prolog

How could I use a predicate trace

in Prolog without keeping track of all predicates called from external modules? I know the predicate trace/2

, but I am under the impression that this can only track or ignore one predicate at a time. Am I wrong? Is there another way to keep track of predicates that are only called from my file more efficiently?

Thanks for answers!

+3


source to share





All Articles