Guys:
Does anyone remembers how to debug a console mode test app with harbour's debugger ? Thank you very much !
// Testing AltD() and Alert() coloring
// Notice you have to compile it using /b
PROCEDURE Main()
CLS
AltD( 1 ) // Enables the debugger. Press <F5> to go
Alert( "debugger enabled",, "GR+/B" )
AltD() // Invokes the debugger
Alert( "debugger invoked",, "GR+" )
Alert( "finished",, "GR+/B,W+/R" )
RETURN
┌──────────────────────────────────────────────────┐
│ Error BASE/1004 No exported method: DISPLAY │
│ │
│ Quit │
└──────────────────────────────────────────────────┘
Error BASE/1004 No exported method: DISPLAY
Called from DISPLAY(0)
Called from HBDEBUGGER:SHOW(0)
Called from HBDEBUGGER:ACTIVATE(0)
Called from __DBGENTRY(0)
Called from __DBGBUILDMENU(417)
Called from HBDEBUGGER:NEW(0)
Called from __DBGENTRY(0)
Called from MAIN(98)
http://www.kresin.ru/en/debugger.html
#Borland make sample, (c) FiveTech Software 2005-2014
HBDIR=c:\harbourb
BCDIR=c:\bcc582
FWDIR=c:\fwh
#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.CH = $(FWDIR)\include;$(HBDIR)\include
.path.C = .\
.path.rc = .\
#important: Use Uppercase for filenames extensions, in the next two rules!
PRG = \
MYAPP.PRG \
MYAPP1.PRG \
MYAPP2.PRG \
MYAPP3.PRG
PROJECT : MyApp.exe
MyApp.exe : $(PRG:.PRG=.OBJ)
echo on
echo $(BCDIR)\lib\c0w32.obj + > b32.bc
echo $(PRG:.PRG=.OBJ), + >> b32.bc
echo MyApp.exe, + >> b32.bc
echo MyApp.map, + >> b32.bc
echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
echo $(HBDIR)\lib\hbvm.lib + >> b32.bc
echo $(HBDIR)\lib\gtwin.lib + >> b32.bc
echo $(HBDIR)\lib\hblang.lib + >> b32.bc
echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc
echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc
echo $(HBDIR)\lib\rddntx.lib + >> b32.bc
echo $(HBDIR)\lib\rddcdx.lib + >> b32.bc
echo $(HBDIR)\lib\rddfpt.lib + >> b32.bc
echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc
echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc
echo $(HBDIR)\lib\hbpp.lib + >> b32.bc
echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc
echo $(HBDIR)\lib\hbwin.lib + >> b32.bc
echo $(HBDIR)\lib\hbcplr.lib + >> b32.bc
echo $(HBDIR)\lib\hbct.lib + >> b32.bc
echo $(HBDIR)\lib\xhb.lib + >> b32.bc
echo $(HBDIR)\lib\hbziparc.lib + >> b32.bc
echo $(HBDIR)\lib\hbmzip.lib + >> b32.bc
echo $(HBDIR)\lib\hbzlib.lib + >> b32.bc
echo $(HBDIR)\lib\minizip.lib + >> b32.bc
echo $(BCDIR)\lib\cw32.lib + >> b32.bc
echo $(BCDIR)\lib\uuid.lib + >> b32.bc
echo $(BCDIR)\lib\import32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\rasapi32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\gdiplus.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\shell32.lib, >> b32.bc
$(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s -jOBJ\ @b32.bc
del b32.bc
.PRG.OBJ:
$(HBDIR)\bin\harbour $< /L /N /W /ES0 /B /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include >> compiler.txt
@type compiler.txt
$(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c
.C.OBJ:
echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
$(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
del tmp
http://www.kresin.ru/en/debugger.html
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 73 guests