Previous Section
1. Start a quick non-project HLA program.
|
Contents
|
Next Section
3. A brief description of the resource editor
3. Introduce the Debug mode and Debug Window
Using the Debug Window.
Debug mode can be used either with or without projects.
1.
Select: Tools > Debug Window
This will open the debug window.
To activate debug features, several other steps need to be taken.
2.
Options > Compiler Settings
In the Output Version, select the Debug radiobutton. Then click Done.
3.
Include the file "hide\dbgwin.hhf" in your src\demo.hhf header:
#include ("hide\dbgwin.hhf")
4.
The debug window is used via series of macros in the dbgwin.hhf header file.
Add a couple lines to try it out:
In src\demo.hla right after "begin demo" add the line
dbg.put("inside demo.hla");
In src\demounit.hla, right after "begin FromUnit" add
dbg.put("inside FromUnit procedure");
5.
Rebuild the project by selecting: Make > ReBuild All
Now when you run the program, some information will be displayed in the Debug Window. For other available macros, review the dbgwin.hhf file.