Low level debug using MSVC debugger

Re: Low level debug using MSVC debugger

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

Re: Low level debug using MSVC debugger

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

Re: Low level debug using MSVC debugger

Postby Antonio Linares » Fri Jun 07, 2013 4:34 am

We click on run (debug) and our app starts :-)

Image
regards, saludos

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

Re: Low level debug using MSVC debugger

Postby Antonio Linares » Fri Jun 07, 2013 4:39 am

Now if we want to low level debug some C code, we add a C section to our PRG:

Code: Select all  Expand view  RUN
//----------------------------------------------------------------------------//

#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:

Image
regards, saludos

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

Re: Low level debug using MSVC debugger

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

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 34 guests