Try using the Harbour built-in debugger as follows.
Place the following line at the beginning of the program source:
#pragma /B+
Place the AltD() function name in the appropriate location of the program source.
The program must be compiled in mixed mode, open the prompt window and run:
<minigui_path>\batch\compile.bat <prgfile> /CG
Here you can use /D parameter instead of #pragma /B+ as an additional parameter.
Regards,
Barna
Here is the working sample:
#pragma /B+ // linking the debugger
#include <
minigui.ch>
Function Main()
AltD() // activate Harbour debugger console
DEFINE WINDOW Demo AT 100,100 WIDTH 300 HEIGHT 150 TITLE 'Demo' MAIN
DEFINE BUTTON Button
ROW 20
COL 80
WIDTH 100
HEIGHT 28
CAPTION "Click here"
ACTION Click()
END BUTTON
END WINDOW
Activate Window Demo
Return (Nil)
Function Click()
// AltD()
? "Clicked... ", This.Name, Time()
Return (Nil)