[ Debugging | Reference Manual | Alphabetic Index ]

nospy ?Speclist

All spypoints or breakpoints are removed from all the procedures given by SpecList. If SpecList is a variable, remove all spypoints.
Sequence of expressions of the form Atom/Integer, Module:Atom/Integer, Module:Atom, Atom, File:Line or Variable.


Removes spypoints or breakpoints from all procedures given by SpecList.

If SpecList is of the form Name or Module:Name, where Name is an atom, then spypoints are removed from procedures from module Moudle (if given) with name Name and of any arity.

If SpecList is of the form File:Line, where File is a file name and Line is an integer, the the closest matching breakpoint to line Line in the file File is removed. If Line is a variable, then all breakpoints in file File are removed.

If SpecList is a variable, all spypoints of visible procedures are removed.

Note that spypoints can also be removed with set_flag(Proc, spy, off).

Modes and Determinism


This predicate is sensitive to its module context (tool predicate, see @/2).


(5) type error
SpecList is not in the correct form.
(60) referring to an undefined procedure
SpecList is an undefined procedure.


    [eclipse 1]: [user].
     p :- q, writeln(hi).
     tty        compiled 132 bytes in 0.00 seconds

    Yes (0.15s cpu)
    [eclipse 2]: spy q.
    spypoint added to q/0.
    Debugger switched on - leap mode

    Yes (0.00s cpu)
    [eclipse 3]: p.

     +(2) 2 CALL  q   %> leap
     +(2) 2 EXIT  q   %> leap

    Yes (0.00s cpu)
    [eclipse 4]: nospy q.
    spypoint removed from q/0.

    Yes (0.00s cpu)
    [eclipse 5]: p.

    Yes (0.00s cpu)
    [eclipse 6]: 

    nospy("l").       (Error 5).

See Also

spy / 1, get_flag / 3, set_flag / 3