Set a spy point as spy/1
and enable the thread for debugging using
Note that a spy point is a global flag on a predicate that is visible
from all threads. Spy points are honoured in all threads that are in
debug mode and ignored in threads that are in nodebug mode.