(spy)/[1,2]
[development]spy
+PredSpecs
Sets plain spypoints on all the predicates represented by PredSpecs.
spy(
+PredSpecs,
+Conditions)
Sets conditional spypoints on all the predicates represented by PredSpecs.
A predicate specification, or a list of such.
Spypoint conditions.
Turns debugger on in debug mode, so that it will stop as soon as it
reaches a spypoint. Turning off the debugger does not remove
spypoints. Use nospy/1
or nospyall/0
) to explicitly remove
them.
If you use the predicate specification form Name but there are no clauses for Name (of any arity), then a warning message will be displayed and no spypoint will be set.
| ?- spy test. * spy user:test - no matching predicate
instantiation_error
type_error
domain_error
Basic Debug, Plain Spypoint, Breakpoint Predicates.