FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour mod harbour FWLOG
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
mod harbour FWLOG
Posted: Mon Jul 15, 2019 04:56 AM

Dear Antonio,
how can I implement FWLOG into my mod harbour programs.
Is the sourcecode of FWLOG function public?
Thank you in advance
Otto

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: mod harbour FWLOG
Posted: Mon Jul 15, 2019 06:15 AM

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: mod harbour FWLOG
Posted: Mon Jul 15, 2019 08:58 AM

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

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: mod harbour FWLOG
Posted: Mon Jul 15, 2019 09:03 AM

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

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: mod harbour FWLOG
Posted: Mon Jul 15, 2019 12:38 PM

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...

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: mod harbour FWLOG
Posted: Mon Jul 15, 2019 04:29 PM

Dear Antonio,
thank you so much.
This will be of great help.
Best regards
Otto

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: mod harbour FWLOG
Posted: Sat Jul 27, 2019 06:56 AM
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
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: mod harbour FWLOG
Posted: Sat Jul 27, 2019 09:40 AM
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
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion