Re: [eclipse-clp-users] Eclipse Prolog - Java

From: Kish Shen <kisshen_at_...5...>
Date: Tue, 14 Oct 2008 01:28:00 +0100
Rafael Oliveira wrote:

> how do I trace my programs (Prolog or CHR) using the Java Interface? (call,
> redo, etc) some documentation about it?
> 

My first recommendation is that you should try and run your ECLiPSe code 
independently of Java first.

If you cannot avoid using Java, then you can use the remote tktools, 
which provides the same set of tools as that provided by TkECLiPSe, for 
your development. See the reference manual documentation for 
lib(remote_tools) and attach_tools/3 (you can use help/1 to get these 
documentation from within ECLiPSe).

You need to add attach_tools/3 to your code, probably when you start 
your program, to attach the remote tools to your ECLiPSe process (you 
also need to start the remote tools as well). You also need to transfer 
control to the remote tools with the predicate tools/0 at some point, to 
allow you to set up spy points or start the tracer, so that you can 
trace the execution of ECLiPSe calls.

Cheers,

Kish

-- 
This e-mail may contain confidential and privileged material for the
sole use of the intended recipient. Any review, use, distribution or
disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact
the sender by reply e-mail and delete all copies of this message.
Cisco Systems Limited (Company Number: 02558939), is registered in
England and Wales with its registered office at 1 Callaghan Square,
Cardiff, South Glamorgan CF10 5BT.
Received on Tue Oct 14 2008 - 00:28:14 CEST

This archive was generated by hypermail 2.2.0 : Mon Jul 09 2018 - 02:05:29 CEST