Page 1 of 1
mod harbour FWLOG
Posted: Mon Jul 15, 2019 4:56 am
by Otto
Dear Antonio,
how can I implement FWLOG into my mod harbour programs.
Is the sourcecode of FWLOG function public?
Thank you in advance
Otto
Re: mod harbour FWLOG
Posted: Mon Jul 15, 2019 6:15 am
by Antonio Linares
Dear Otto,
From your PRG you call ShowConsole(), this will open a second Apache console window.
From that moment on, you can simply use QOut( ... ) and it will appear on the Apache console
that simple
Re: mod harbour FWLOG
Posted: Mon Jul 15, 2019 8:58 am
by Otto
Dear Antonio,
I never opened an Apache console window.
Does this only work if I work with localhost or also from the internet?
Thank you in advance
Otto
Re: mod harbour FWLOG
Posted: Mon Jul 15, 2019 9:03 am
by Otto
Dear Antonio,
in the meantime I added following function to my code.
Inside GENESIS index.prg I inserted a lot of logging calls.
logging( "nach AddLog" )
Now the hard work begins understanding what the code does:
678 GETCOOKIES
678 GETCOOKIES
678 GETCOOKIES
82 browse
93 routes
98 ->GET
419 VIEW
419 VIEW
359 GETCONTENT
359 GETCONTENT
359 GETCONTENT
359 GETCONTENT
419 VIEW
419 VIEW
359 GETCONTENT
359 GETCONTENT
359 GETCONTENT
...
Is there an other way to see what the program does.
Thank you in advance
Otto
//----------------------------------------------------------------------------//
function logging( cText )
local cLog
cLog := memoread("c:\xampp\htdocs\samples\genesis\prg.log")
cLog += ALLTRIM( str(procline(1)) ) + " " + cText+ CRLF
MEMOWRIT("c:\xampp\htdocs\samples\genesis\prg.log" , cLog, .f. )
return nil
Re: mod harbour FWLOG
Posted: Mon Jul 15, 2019 12:38 pm
by Antonio Linares
Dear Otto,
You can use the debugger and specifically the one provided by Antonino Perricone for vscode
I will make a video explaining how to use it...
Re: mod harbour FWLOG
Posted: Mon Jul 15, 2019 4:29 pm
by Otto
Dear Antonio,
thank you so much.
This will be of great help.
Best regards
Otto
Re: mod harbour FWLOG
Posted: Sat Jul 27, 2019 6:56 am
by Otto
Dear Antonio,
I have looked the video. Thank you so much.
Would you please post the download links for IDE and Debugger.
Thank you in advance
Otto
Re: mod harbour FWLOG
Posted: Sat Jul 27, 2019 9:40 am
by Antonio Linares
Dear Otto,
vscode:
https://code.visualstudio.com/
From vscode, click on extensions and look for "Harbour" and select the one from Antonino Perricone
many thanks