Debugging unexpected failure (was http server)

Anne Ogborn <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>

> Typically, the

way to debug is

   ?- tspy(doit/1).

...  Now step through it



Whenever I do this I invariably think that the computer could be doing this for me.
I dream at times of an additional tool. In the debugger this would be an additional
command (maybe ? key) that says 'step over this (as s), but if the predicate fails, reset the debugger to the point at which the stack was deepest.
(If that's not unique, you probably want the last one encountered).

Since frequently that's ultimately all the info I need from stepping through, is
'why is this thing failing?', and usually that's at the point where the stack is deepest.
-------------- next part --------------
HTML attachment scrubbed and removed
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.