Re: Paolo Parise - logging the trace

Daniel Diaz <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Hello,

sorry for the late.

There is no automatic way to do this. The trace is only available under the debugger and there is no simple way to write in on a socket. The best way is to write you own meta-interpreter which could then output all needed information during the execution of a goal. You can obtain more information on meta-programmaming in these books: "Programming in Prolog" by Clocksin & Mellish, "The Craft of Prolog" by R. O Keefe.

Daniel



Le 2 août 2011 à 17:39, Paolo Parise a écrit :

> I'm Parise Paolo and I've developed a game using Prolog. For demonstration issues and through your Prolog interpreter gprolog, I want to
> execute, using an external program developed in Java (called controller) the following loop:
> 1: (gprolog) execute a portion of the game
> 2: (gprolog) stop the execution and send to the controller the trace, finally wait for the controller acknowledge
> 3: (controller) receive and print the trace (call, exit etc..), ack to che gprolog program
> 4: (gprolog) ack received, execute the next portion of the game
> 5: (gprolog) stop the execution and send to the controller the trace, finally wait for the controller acknowledge
> 6: (controller) receive and print the trace (call, exit etc..), ack to che gprolog program
> 7. ... and so on
> Start and stop are messages through a TCP connection but I don't know how the controller can receive the prolog trace. Does gprolog provide a file logging (the controller can read the file)? Have you got advices?
> Thanks!!
> Paolo Parise 
> -- 
> Ce message a été vérifié par MailScanner pour des virus ou des polluriels et rien de suspect n'a été trouvé. _______________________________________________
> Users-prolog mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/users-prolog


-- 
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.

_______________________________________________
Users-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/users-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.