how to DEBUG FiveWin ?

Post Reply
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

how to DEBUG FiveWin ?

Post by Jimmy »

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
Antonio Linares
Site Admin
Posts: 42521
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Re: how to DEBUG FiveWin ?

Post by Antonio Linares »

Dear Jimmy,

Please go to FWH\samples folder and do:

buildh.bat tutor01 /b
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: how to DEBUG FiveWin ?

Post by Jimmy »

hi Antonio,

have follow your Advice

btw. this line

Code: Select all | Expand

%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

%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

  c:\fwh\samples\tutor01.prg

do not work

Code: Select all | Expand

   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
Antonio Linares
Site Admin
Posts: 42521
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Re: how to DEBUG FiveWin ?

Post by Antonio Linares »

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
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: how to DEBUG FiveWin ?

Post by Jimmy »

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

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
Antonio Linares
Site Admin
Posts: 42521
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Re: how to DEBUG FiveWin ?

Post by Antonio Linares »

Dear Jimmy,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: how to DEBUG FiveWin ?

Post by Jimmy »

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

Ok, got it
Thx
greeting,
Jimmy
User avatar
Rick Lipkin
Posts: 2668
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: how to DEBUG FiveWin ?

Post by Rick Lipkin »

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
AntoninoP
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy
Contact:

Re: how to DEBUG FiveWin ?

Post by AntoninoP »

There is wonderful debugger on VSCode :D
User avatar
Antonio Linares
Site Admin
Posts: 42521
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Re: how to DEBUG FiveWin ?

Post by Antonio Linares »

Dear Antonino,

+1 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 24 times
Been thanked: 2 times
Contact:

Re: how to DEBUG FiveWin ?

Post by Otto »

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
********************************************************************
AntoninoP
Posts: 375
Joined: Tue Feb 10, 2015 9:48 am
Location: Albenga, Italy
Contact:

Re: how to DEBUG FiveWin ?

Post by AntoninoP »

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
User avatar
Otto
Posts: 6403
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 24 times
Been thanked: 2 times
Contact:

Re: how to DEBUG FiveWin ?

Post by Otto »

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
********************************************************************
Post Reply