Graphic debugger in cursor (vs-code)

Hello,

Its been a while, i am looking again into prolog.

I managed to get the prolog repl to work in cursor using the prolog extension and configuring the paths.

However, i was not able to get the visual debugger to start working.

submitting guitracer. isn’t a recognized predicate.

starting swi prolog and selecting graphic debugger menu does work – so xpce is installed and happy.

All help would be much appreciated,

Dan

Many of these tools run swipl.exe rather than swipl-win.exe. Typically it works after loading

?- [swi('swipl-win.rc')].

At least, that is the state on Windows. On MacOS and Linux it should work normally out of the box.

2 Likes

Incredible – that works!

What did this configure

Hi Jan,

Is there a way to activate the graphic debugger on command line.

I managed to get the swi prolog plugin compiled and installed on cursor ide on osx, and have a command line, but no graphic debugger – the command [swi(‘swipl-win.rc’)]. leads to an error

ERROR: source_sink `swi(‘swipl-win.rc’)’ does not exist

what happens when i select graphic debugger in the swi program command line

ok, got it to work - i have two swi prolog versions included, one via brew and the other one i probsably installed manually and it sits in the applications folder as swi-prolog.app – that’s the one that has an executable with pce enabled – and when i pointed the path to its executable in the plugin settings – it worked like a charm!

and gtrace activates the graphic debugger.

Unfortunately Homebrew likes installing just the core system. It anyone is willing to update the recipe, please do. The Macports version should be fine.

The ?- [swi('swipl-win.rc')]. was needed on Windows to run graphics from swipl.exe. Since the move to the SDL based tools this is no longer required.