Deutsch English Français Italiano |
<vhtrip$j9h0$1@solani.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.roellig-ltd.de!open-news-network.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Mild Shock <janburse@fastmail.fm> Newsgroups: comp.lang.prolog Subject: Current Work Around: ASCII <-> Browser Cycle (Was: Creating a [Web] Debugger?) Date: Sun, 24 Nov 2024 01:21:46 +0100 Message-ID: <vhtrip$j9h0$1@solani.org> References: <vhtjdo$1mdu7$1@dont-email.me> <vhtojb$j823$1@solani.org> <vhtpqq$1mdu7$2@dont-email.me> <vhtr72$j9ed$1@solani.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 24 Nov 2024 00:21:45 -0000 (UTC) Injection-Info: solani.org; logging-data="632352"; mail-complaints-to="abuse@news.solani.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.19 Cancel-Lock: sha1:+lOjr5err+HCQCKmRdwCfA1uGVM= X-User-ID: eJwNwokRACEIBLCWTpZFKQd5+i/By4SwZbnVaMrhOI9joN1yJVLRXpFXIBpxpInTAP3b9i+UpyCc0nptVj1MrxU5 In-Reply-To: <vhtr72$j9ed$1@solani.org> Bytes: 4444 Lines: 97 Hi, The current work around is to first develop the application with an ascii interface, and debug it with lets say SWI-Prolog like here: Prolog code for the tic-tac-toe game. [ASCII Console Version] https://www.dogelog.ch/littab/doclet/docs/15_sources/basic/example01/console.html If you have done this cross development you can bring it to the web, like here: Prolog code for the tic-tac-toe game. [Browser Version] https://www.dogelog.ch/littab/doclet/docs/15_sources/basic/example03/board.html You have still all the options to debug it web-ish, like opening the chrome development tools, watch all the things there, you can also use break points there and stop event handlers and foreign functions that access the web browser. So basically debugging of the web GUI part happens mainly via: Chrome DevTools is a set of web developer tools built directly into the Google Chrome browser. DevTools lets you edit pages on-the-fly and diagnose problems quickly, which helps you build better websites, faster. https://developer.chrome.com/docs/devtools Mild Shock schrieb: > Hi, > > Do you mean the idea to create a debugger > for Dogelog Player? You want to fork it and > then add the following: > > > BTW, any plans to implement a library like SWI's prolog_trace? > > <https://www.swi-prolog.org/pldoc/man?section=prologtrace> > > I am finding that quite useful for debugging. > > I don't know whether it is allowed. The > typical scenario is rather to write a Tic Tac Toe, > and put it on the web. That is allowed by my > > license. You could also ask for money from > end-users when they are using the Tic Tac Toe. About > the debugger I am not sure, my license has a clause: > > > Provided the programs add significant and > > primary functionality. Not to be distributed > > with additional software intended to > > replace components. > > So Tic Tac Toe as a primary functionality is > of course fine. About a debugger I don't know. > You might get a written permission from me. > > A debugger is not included because how for > example should a web client application have > a debugger? Its not that SWI-Prologs prologtrace > > trace automatically gives a Debug Adapter Protocol > (DAP) that would integrate into Chrome? So for Web 2.0/3.0 > one has to anyway rethink debugging. I did this > > rethinking already for formerly Jekejeke Prolog, and > might bring up some of the ideas again. But a Debug > Adapter Protocol (DAP) could be also prototyped with > > SWI-Prolog. Like can you have SWI Prolog server and > start debugging. The stance there is even not think > about creating a DAP, but instead to go through > > the normal terminal and the normal top-level > debugging commands, since SWI-Prolog includes > an SSH server. See here: > > Using SSH to debug services and embedded Prolog > https://www.swi-prolog.org/blog/sshd.md > > But for Web 2.0/3.0 I don't whether this works as well. > > Bye > > Julio Di Egidio schrieb: >> On 24/11/2024 00:30, Mild Shock wrote: >> >>> If you want something with a GNU license, >>> there is GNU Prolog: >> >> I gave my rationale and asked for yours or any plans. >> >> Anyway, thanks, I'll take that as your answer. >> >> -Julio >> >