FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Low level debug using MSVC debugger
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Low level debug using MSVC debugger
Posted: Wed Jun 05, 2013 11:25 AM
I have been two days following a nasty bug, that it even made me think that could be a virus. Now I know that it is a Harbour bug and I have also reported it to the Harbour devel list:

https://groups.google.com/forum/?fromgroups#!topic/harbour-devel/YPx3LKf-RyI

But to me, the real important thing is that on a circunstance where a nasty GPF was ocurring (the GPF happened in a Windows DLL, apparently not related at all with the EXE), the Microsoft Visual C debugger has been the only tool that helped me on such important task. Thats why I think that some of you may be interested in knowing how to use such so usefull tool :-)

Thats why I think this is really important to be commented here
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Low level debug using MSVC debugger
Posted: Thu Jun 06, 2013 07:23 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Low level debug using MSVC debugger
Posted: Thu Jun 06, 2013 09:24 PM
Add existing tutor02.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Low level debug using MSVC debugger
Posted: Thu Jun 06, 2013 09:26 PM
Remove stdafx.cpp, stdafx.h, tutor02.cpp, tutor02.h and targetver.h

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Low level debug using MSVC debugger
Posted: Thu Jun 06, 2013 09:35 PM
Edit tutor02.prg properties:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Low level debug using MSVC debugger
Posted: Thu Jun 06, 2013 09:36 PM
Select Custom Build tool:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Low level debug using MSVC debugger
Posted: Thu Jun 06, 2013 09:38 PM
c:\harbour\bin\harbour %(FullPath) /n /ic:\harbour\include /ic:\fwh\include

.\%(Filename).c

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Low level debug using MSVC debugger
Posted: Thu Jun 06, 2013 09:51 PM
Compile tutor02.prg as we need to add the resulting tutor02.c into the project too:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Low level debug using MSVC debugger
Posted: Thu Jun 06, 2013 09:52 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Low level debug using MSVC debugger
Posted: Thu Jun 06, 2013 09:54 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Low level debug using MSVC debugger
Posted: Thu Jun 06, 2013 09:55 PM
Don't use precompiled headers:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Low level debug using MSVC debugger
Posted: Fri Jun 07, 2013 04:10 AM
Edit tutor02.c properties:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Low level debug using MSVC debugger
Posted: Fri Jun 07, 2013 04:11 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Low level debug using MSVC debugger
Posted: Fri Jun 07, 2013 04:15 AM
Now we add the Harbur libraries for MSVC:

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Low level debug using MSVC debugger
Posted: Fri Jun 07, 2013 04:16 AM
and we select all the Harbour libraries. On a next step we will remove the ones that we don't need:

regards, saludos

Antonio Linares
www.fivetechsoft.com