how to DEBUG FiveWin ?

how to DEBUG FiveWin ?

Postby Jimmy » Sat Jul 23, 2022 9:54 pm

hi,

i wonder how to DEBUG FiveWin App which need Option "-b"
when start App i got Warning
FWDBG.DLL not found

i found c:\fwh\dll\fwdbg.dll and in this Folder also 3 x *.BAT
fwdbg64.bat, rc2dll32.bat, and rc2dll64.bat but no fwdbg32.bat :?:

need some help please
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: how to DEBUG FiveWin ?

Postby Antonio Linares » Sun Jul 24, 2022 4:33 am

Dear Jimmy,

Please go to FWH\samples folder and do:

buildh.bat tutor01 /b
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42059
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: how to DEBUG FiveWin ?

Postby Jimmy » Sun Jul 24, 2022 2:39 pm

hi Antonio,

have follow your Advice

btw. this line
Code: Select all  Expand view
%hdir%\bin\win\bcc\harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log

must be
Code: Select all  Expand view
%hdir%\bin\harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log 2> warnings.log

it does show Debugger but how when compile/link in other Folder where i got Warning about missing fwdbg.dll :(

work
Code: Select all  Expand view
  c:\fwh\samples\tutor01.prg

do not work
Code: Select all  Expand view
   c:\fwh\0\FWVLC\FWVLC.PRG

i try to include c:\fwh\dll into PATH but still got Warning ... have to copy fwdbg.dll into App Folder to work
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: how to DEBUG FiveWin ?

Postby Antonio Linares » Mon Jul 25, 2022 3:52 pm

Dear Jimmy,

Up to recently we used the same folders configuration as Clipper: bin, lib, include folders.

But as we can build in 32 or 64 bits, using Borland, Microsoft or MinGW, we have decided to respect the same directory structure as Harbour uses:

harbour/bin/win/bcc
harbour/bin/win/msvc
harbour/bin/win/msvc64
harbour/bin/win/mingw
etc...

from FWH 22.06 on we are using this folders structure, so you can easily build using 32 or 64 bits, or using any of those compilers. That would be impossible
using harbour/bin only. The same structure applies for the lib folder.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42059
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: how to DEBUG FiveWin ?

Postby Jimmy » Mon Jul 25, 2022 4:28 pm

hi Antonio,

i´m not sure about your last Answer which seems have to do with harbour/Bin ...
> bin, lib, include folders.

my "Problem" is c:\fwh\dll\fwdbg.dll which is "unknown" when not using c:\fwh\samples\

---

i have create Sub-Folder under C:\fwh for my own Project
Code: Select all  Expand view
c:\fwh\0\VLC\

now i have to "copy" fwdbg.dll into Folder to make it work

i have try to include c:\fwh\dll into PATH but still got Warning "not found"

Question : is there any "SET FWDEBUG =" :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: how to DEBUG FiveWin ?

Postby Antonio Linares » Mon Jul 25, 2022 5:22 pm

Dear Jimmy,

You have to copy fwdbg.dll where your EXE is placed
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42059
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: how to DEBUG FiveWin ?

Postby Jimmy » Mon Jul 25, 2022 6:41 pm

hi Antonio,
Antonio Linares wrote:You have to copy fwdbg.dll where your EXE is placed

Ok, got it
Thx
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: how to DEBUG FiveWin ?

Postby Rick Lipkin » Mon Jul 25, 2022 7:34 pm

Jimmy

Debug is a very handy tool to have .. you can debug also and trap values at runtime with Msginfo() .. you can easily evaluate memory variables, module tracing, etc ....

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2663
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: how to DEBUG FiveWin ?

Postby AntoninoP » Tue Jul 26, 2022 9:48 am

There is wonderful debugger on VSCode :D
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

Re: how to DEBUG FiveWin ?

Postby Antonio Linares » Tue Jul 26, 2022 11:13 am

Dear Antonino,

+1 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42059
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: how to DEBUG FiveWin ?

Postby Otto » Tue Jul 26, 2022 2:24 pm

Hello AntoninoP,

is there some info how to start using VSCode debugger?

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: 6310
Joined: Fri Oct 07, 2005 7:07 pm

Re: how to DEBUG FiveWin ?

Postby AntoninoP » Tue Jul 26, 2022 2:46 pm

Otto wrote:Hello AntoninoP,

is there some info how to start using VSCode debugger?

Best regards,
Otto

I always suggest the very good guide by Eric Lendvai https://harbour.wiki/index.asp?page=PublicArticles&mode=show&id=190401174818&sig=6893630672
AntoninoP
 
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy

Re: how to DEBUG FiveWin ?

Postby Otto » Tue Jul 26, 2022 4:03 pm

Hello Antonino,
Thank you. I will try.

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: 6310
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Otto and 71 guests