Skip to content

Instantly share code, notes, and snippets.

@cth
Created March 17, 2009 17:36
Show Gist options
  • Save cth/80669 to your computer and use it in GitHub Desktop.
Save cth/80669 to your computer and use it in GitHub Desktop.
% Simple Prolog debugging trick
:- op(800, fx,'>').
'>'(X) :-
write(X),
write('\n'),
call(X).
test :-
>write('foobar').
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment