Editor While Debuging

Once a project is "built", it may be loaded into the emulator and then debugged.  The project will not load and breakpoints cannot be set until most errors have been corrected.  The emulator window will show your project if it has been loaded.  Also the Project Window's Debug Data tab will show the load address in the emulator.

The required sequence of events is:
    Start the emulator
    Build the project
    Load the project (automatic if Autoload has been set on the Project Data tab)
    Set breakpoints in the source windows
    Press the calculator keys in the emulator to start your code

If the project has already been built, you may:
    Start the emulator
    Load the project (press Load on the Project's Debug Data tab)
    Set breakpoints in the source windows
    Press the calculator keys in the emulator to start your code

 

You may also drag-and-drop the project.hp file from a Windows Explorer window into the emulator window.  After dropping the file, it will be neccessary to use the Search button on the  Project's Debug Data tab to find the load address.

 

Breakpoints
Breakpoints may be set by clicking with the mouse to the left of the line numbers in the editor.  Breakpoints cannot be set unless the exact same project matching the project.hp file is loaded into a running emulator.

An active breakpoint will be shown by a red circle.  An inactive breakpoint is shown as a breakpoint with a yellow X across it.  Breakpoints are changed from active to inactive and back by clicking with the right-mouse button on the breakpoint circle.

Current Code Address
The program counter for the project will be shown as a blue line in the source code.  Normally this line does not appear until after a break occurs.  Sometimes a line of source may contain (or "call" many other pieces of code).  If the code is in the ROM, the blue line will not move.  If the code is in another of the project's source files, the blue line will move to that source.