The settable flags, their values and their meanings are:
-------------------------------------------------- | Flags Values Description | |----------------------------------------------- | | leash stop, see below | | print, | | notrace | | skip on, off procedure will be | | traced, but its | | children will not | | spy on, off procedure has a | | spypoint | | statistics on, off procedure profiling | | waking eager, waking when suspended | | lazy | | parallel on, off may be executed in | | parallel | --------------------------------------------------The possible values of leash and their meanings are:
|-------------------------------------------------| | Values Description | |----------------------------------------------- | | stop the procedure's ports will be | | printed and debugger stops on | | them | | print the procedure's ports will be | | printed and debugger does not | | stop on them | | notrace the procedure's ports will not be | | shown, but its children's will | --------------------------------------------------|
Success: [eclipse]: [user]. pr([]). % prints the elements of a list pr([ S | T ]) :- writeln(S), pr(T). user compiled 484 bytes in 0.00 seconds yes. [eclipse]: pr([tom, dick]). tom dick yes. [eclipse]: set_flag(pr/1, spy, on). yes. [eclipse]: trace. Debugger switched on - creep mode yes. [eclipse]: pr([tom, dick]). +(1) 0 CALL pr([tom, dick]) (dbg)?- leap tom +(3) 1 CALL pr([dick]) (dbg)?- leap dick +(5) 2 CALL pr([]) (dbg)?- leap +(5) 2 EXIT pr([]) (dbg)?- leap +(3) 1 EXIT pr([dick]) (dbg)?- leap +(1) 0 EXIT pr([tom, dick]) (dbg)?- leap yes. Error: set_flag(X, skip, on). (Error 4). set_flag("a", spy, on). (Error 5). set_flag(is/2, spy, yes). (Error 6). set_flag(p/2, leash, on). (Error 60).