Re: easy display system?
Alan Baljeu <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
view_term looks like it will serve. Is there any way to set the window title? I'm displaying information derived from the current constraint store. Alan Baljeu ----- Original Message ----- From: Jan Wielemaker <[email protected]> To: Alan Baljeu <[email protected]> Cc: Prolog <[email protected]> Sent: Tuesday, July 16, 2013 4:16:04 PM Subject: Re: [SWIPL] easy display system? On 07/16/2013 09:54 PM, Alan Baljeu wrote: > I've got a nice, but complex system working, for which I > now feel I need a higher-level view for tracing its operations. > I've figured at various points in execution certain lists that > would be useful to see sometimes. Currently the only way > I know is to read and write to the console. Certainly very > easy, but I wonder if there's another way that's also easy, > but not so scrolly. Plain message boxes would not be sufficient, > as I'd need persistent access and copy/paste. Not sure what you want. Select specific messages or selectively (maybe interactively) dig into the details of messages? Selecting messages is fairly well supported using debug/3 for printing them and debug/1 or nodebug/1 for defining which ones are actually printed. The Windows console offers Debug/Debug messages in the menu, which provides a (simple) GUI interface. Interactively digging into terms is (in a limited way) provided by the GUI debugger. You can also call this window yourself by loading :- use_module(library(trace/viewterm)). and then call view_term/1 or view_term/2. Of course, you know about the portray hook. There is enough stuff around to help you. Something really fancy and well integrated is still welcome ... Cheers --- Jan > > Alan Baljeu > _______________________________________________ > SWI-Prolog mailing list > [email protected] > https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog >