mod harbour FWLOG

mod harbour FWLOG

Postby Otto » Mon Jul 15, 2019 4: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6032
Joined: Fri Oct 07, 2005 7:07 pm

Re: mod harbour FWLOG

Postby Antonio Linares » Mon Jul 15, 2019 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41329
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: mod harbour FWLOG

Postby Otto » Mon Jul 15, 2019 8: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6032
Joined: Fri Oct 07, 2005 7:07 pm

Re: mod harbour FWLOG

Postby Otto » Mon Jul 15, 2019 9: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6032
Joined: Fri Oct 07, 2005 7:07 pm

Re: mod harbour FWLOG

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 41329
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: mod harbour FWLOG

Postby Otto » Mon Jul 15, 2019 4:29 pm

Dear Antonio,
thank you so much.
This will be of great help.
Best regards
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6032
Joined: Fri Oct 07, 2005 7:07 pm

Re: mod harbour FWLOG

Postby Otto » Sat Jul 27, 2019 6: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
Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6032
Joined: Fri Oct 07, 2005 7:07 pm

Re: mod harbour FWLOG

Postby Antonio Linares » Sat Jul 27, 2019 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41329
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Willi Quintana and 22 guests