[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gb.web.gui debugging
[Thread Prev] | [Thread Next]
- Subject: Re: gb.web.gui debugging
- From: Bruce Steers <bsteers4@xxxxxxxxx>
- Date: Sat, 1 Feb 2025 13:06:37 +0000
- To: user@xxxxxxxxxxxxxxxxxxxxxx
So I guess it's line 67 of FDebugConfig.class btnUseHttpServer.Enabled = Not Project.Components.Exist("gb.web.gui") So that'll be what I'm talking about. clearly by design if gb.web.gui is loaded enabling/disabling embedded server is not possible. Can't say I ever noticed it stuck on before. It's a bug though for sure. Because If i create a new gb.web.gui program then the embedded server option is disabled but *NOT* selected. I guess the option was selected on some of my other projects before you added the code to disable the switch. Should it be On or Off? the code that disables the switch does not force it to be on or off, just disables it in it's current state that may or may not have been previously set. Respects BruceS On Sat, 1 Feb 2025 at 02:44, Bruce Steers <bsteers4@xxxxxxxxx> wrote: > > > On Sat, 1 Feb 2025 at 01:32, Benoît Minisini < > benoit.minisini@xxxxxxxxxxxxxxxx> wrote: > >> Le 01/02/2025 à 00:13, Bruce Steers a écrit : >> > I used to be able to set or unset the debugging option "use embedded >> > http server". >> > if not selected it would just print the html code in the console. >> > Now i cannot seem to de-select it! >> >> What do you mean by that exactly? >> > cannot turn it off > >> >> > It's stuck ON with all projects like it's kinda pointless the option >> > being there. >> > is that by design? >> >> I can enable and disable the option. I don't understand what you mean >> > > It seems to be selectable on a normal gui program but not on any > gb.web.gui one. > > > >> > >> > Also wanted to mention when testing a web program using the embedded >> > server there is no removal of the empty temp folder /tmp/gambas.1000/ >> > <pid> (is Quit being used?) >> >> Maybe. I will check. Hard to tell without seeing your project. >> >> By the way, the embedded http server is not really useful anymore for >> debugging a web application. >> >> Now, you can set a breakpoint in the code of your web application and >> click on "Debug -> Debug extern process". >> >> Then the IDE debugger will wake up when the first request handled by >> your program hits a breakpoint. >> >> The executable of your CGI script run by your local web server must be >> synchronized with the source code opened by the IDE of course. >> >> I hope I was clear! >> > >> Regards, >> >> -- >> Benoît Minisini. >> > > Thanks Benoit , very clear > I might not have been though , when i say "debugging" i mean hitting "run" > to test it. > i find the embedded server very useful for that. > I find turning it off sometimes to examine the output code also useful. > > I've attached an example that runs here online > http://bruceybonus.uk/cgi-bin/WebGambasUpgrade.gambas > > I cannot turn off embedded server in that program. > > Respects > BruceS > >
Re: gb.web.gui debugging | Bruce Steers <bsteers4@xxxxxxxxx> |
gb.web.gui debugging | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: gb.web.gui debugging | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |
Re: gb.web.gui debugging | Bruce Steers <bsteers4@xxxxxxxxx> |