Skip to content

Commit 681c869

Browse files
committed
FIXED: Tracer/console interaction
1 parent 7015c55 commit 681c869

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/trace.pl

+8-2
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,15 @@
7575
:- multifile
7676
user:prolog_trace_interception/4,
7777
user:message_hook/3.
78+
:- dynamic
79+
user:message_hook/3.
80+
81+
intercept_trace_mode_switch :-
82+
asserta((user:message_hook(trace_mode(_), _, _) :-
83+
pengine_self(_), !)).
7884

79-
user:message_hook(trace_mode(_), _, _) :-
80-
pengine_self(_), !.
85+
:- initialization
86+
intercept_trace_mode_switch.
8187

8288
%! trace_pengines
8389
%

0 commit comments

Comments
 (0)