protocol
debuggerpï
Debugger protocol.
logtalk_load(debugger(loader))static
Debugger help: Type the character
h(condensed help) or the character?(extended help) at a leashed port.Predicate breakpoint: Specified as a ground term
Functor/Arity.Non-terminal breakpoint: Specified as a ground term
Functor//Arity.Entity predicate breakpoint: Specified as a term
Entity::Functor/Arity.Entitymust be an object or category and may not be ground if parametric.Entity non-terminal breakpoint: Specified as a term
Entity::Functor//Arity.Entitymust be an object or category and may not be ground if parametric.Clause breakpoint: Specified as an
Entity-Lineterm with bothEntityandLinebound.Linemust be the first source file line of an entity clause.Conditional breakpoint: Specified using
EntityandLinefor the clause head and a condition.Linemust be the first source file line of an entity clause.Hit count breakpoint: Specified using
EntityandLinefor the clause head and an unification count expression as a condition.Linemust be the first source file line of an entity clause.Triggered breakpoint: Specified using
EntityandLinefor the clause head and another breakpoint as a condition.Linemust be the first source file line of an entity clause.Context breakpoint: Specified as a
(Sender, This, Self, Goal)tuple.Log point: Specified using
EntityandLinefor the clause head and a message.Leash port shorthands:
none-[],loose-[fact,rule,call],half-[fact,rule,call,redo],tight-[fact,rule,call,redo,fail,exception], andfull-[fact,rule,call,exit,redo,fail,exception].
Public predicatesï
reset/0ï
Resets all debugging settings (including breakpoints, log points, and leashed ports) and turns off debugging.
staticreset - onedebug/0ï
Starts debugging for all defined breakpoints.
staticdebug - onenodebug/0ï
Stops debugging for all defined breakpoints. Also turns off tracing. Does not remove defined breakpoints.
staticnodebug - onedebugging/0ï
Reports current debugging settings, including breakpoints and log points.
staticdebugging - onedebugging/1ï
Enumerates, by backtracking, all entities compiled in debug mode.
staticdebugging(Entity)debugging(?entity_identifier) - zero_or_moretrace/0ï
Starts tracing all calls compiled in debug mode.
statictrace - onenotrace/0ï
Stops tracing of calls compiled in debug mode. Debugger will still stop at defined breakpoints.
staticnotrace - oneleash/1ï
Sets the debugger leash ports using an abbreviation (none, loose, half, tight, or full) or a list of ports (valid ports are fact, rule, call, exit, redo, fail, and exception).
staticleash(Ports)leash(+atom) - oneleash(+list(atom)) - oneleashing/1ï
Enumerates, by backtracking, all leashed ports (valid ports are fact, rule, call, exit, redo, fail, and exception).
staticleashing(Port)leashing(?atom) - zero_or_morespy/1ï
Sets a predicate or clause breakpoint (removing any existing log point or breakpoint defined for the same location, or a list of breakpoints. Fails if a breakpoint is invalid.
staticspy(Breakpoint)spy(@spy_point) - zero_or_onespy(@list(spy_point)) - zero_or_onespying/1ï
Enumerates, by backtracking, all defined predicate and clause breakpoints.
staticspying(Breakpoint)spying(?spy_point) - zero_or_morenospy/1ï
Removes all matching predicate and clause breakpoints.
staticnospy(Breakpoint)nospy(@var) - onenospy(@spy_point) - onenospy(@list(spy_point)) - onespy/3ï
Sets a conditional or triggered breakpoint (removing any existing log point or breakpoint defined for the same location) at a clause head. The condition can be a unification count expression, a lambda expression, or another breakpoint. Fails if the breakpoint is invalid.
staticspy(Entity,Line,Condition)spy(+atom,+integer,@callable) - zero_or_one
Unification count expression conditions:
>(Count),>=(Count),=:=(Count),=<(Count),<(Count),mod(M), andCount.Lambda expression conditions:
[Count,N,Goal]>>Conditionand[Goal]>>ConditionwhereCountis the unification count,Nis the invocation number, andGoalis the goal that unified with the clause head;Conditionis called in the context ofuser.Triggered breakpoint conditions:
Entity-Line.
spying/3ï
Enumerates, by backtracking, all conditional and triggered breakpoints.
staticspying(Entity,Line,Condition)spying(?atom,?integer,?callable) - zero_or_morenospy/3ï
Removes all matching conditional and triggered breakpoints.
staticnospy(Entity,Line,Condition)nospy(@term,@term,@term) - onespy/4ï
Sets a context breakpoint.
staticspy(Sender,This,Self,Goal)spy(@term,@term,@term,@term) - onespying/4ï
Enumerates, by backtracking, all defined context breakpoints.
staticspying(Sender,This,Self,Goal)spying(?term,?term,?term,?term) - zero_or_morenospy/4ï
Removes all matching context breakpoints.
staticnospy(Sender,This,Self,Goal)nospy(@term,@term,@term,@term) - onenospyall/0ï
Removes all breakpoints and log points.
staticnospyall - onelog/3ï
Sets a log point (removing any existing breakpoint defined for the same location) at a clause head. Fails if the log point is invalid.
staticlog(Entity,Line,Message)log(@object_identifier,+integer,+atom) - zero_or_onelog(@category_identifier,+integer,+atom) - zero_or_onelogging/3ï
Enumerates, by backtracking, all defined log points.
staticlogging(Entity,Line,Message)logging(?object_identifier,?integer,?atom) - zero_or_morelogging(?category_identifier,?integer,?atom) - zero_or_morenolog/3ï
Removes all matching log points.
staticnolog(Entity,Line,Message)nolog(@var_or(object_identifier),@var_or(integer),@var_or(atom)) - onenolog(@var_or(category_identifier),@var_or(integer),@var_or(atom)) - onenologall/0ï
Removes all log points.
staticnologall - onewrite_max_depth/1ï
Current term write maximum depth. When not defined, the backend default is used.
staticwrite_max_depth(MaxDepth)write_max_depth(?non_negative_integer) - zero_or_oneset_write_max_depth/1ï
Sets the default term maximum write depth. For most backends, a value of zero means that the whole term is written.
staticset_write_max_depth(MaxDepth)set_write_max_depth(+non_negative_integer) - oneProtected predicatesï
(none)
Private predicatesï
(none)
Operatorsï
(none)
See also