I'm developing a Java+Prolog application through the JPL bridge. The main application is in Java and it calls the Prolog code using Query.oneSolution("doPrologStuff(here)")
I tried running the GUI debugger/tracer using Query.hasSolution("gtrace")
but it throws an exception:
Exception in thread "main" jpl.PrologException: PrologException: error(existence_error(procedure, /(gtrace, 0)), context(:(system, /('$c_call_prolog', 0)), _0))
at jpl.Query.get1(Query.java:336)
...
(Same goes for "guitracer")
Calling gtrace.
works well when I run the Prolog code in swipl
directly.
When I try Query.hasSolution("trace")
it lets me debug the code using the text console, but that's not what I'm looking for. Any ideas how to enable the GUI debugger?
I'm using Eclipse on Ubuntu to develop, but I can try other tools if that helps :)