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
Re: Low level debug using MSVC debugger
Posted: Fri Jun 07, 2013 04:23 AM

We remove these Harbour libs files: harbour-32.dll, harbour-32.def, harbour-32.dif, maindllp.lib, hbnortl.lib, hbnullrdd.lib

We add the FWH libs: fiveh32.lib fivehc32.lib

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:24 AM

We add ComCtl32.lib, psapi.lib, OleDlg.lib, msimg32.lib, version.lib and from c:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib\

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:34 AM
We click on run (debug) and our app starts :-)

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:39 AM
Now if we want to low level debug some C code, we add a C section to our PRG:

Code (fw): Select all Collapse
//----------------------------------------------------------------------------//

#pragma BEGINDUMP

HB_FUNC( TEST )
{
}

#pragma EDNDDUMP


And click at the left border of our code to set a breakpoint:

As you see, we can stop the execution at the C code and execute it step by step and more important, we can check the C calls stack on the bottom right side:

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 05:26 AM

If you want to debug the Harbour libs, simply remove the lib that you want to debug and add its corresponding C modules.

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion