Debug Windows

This section provides an overview of available Debug Windows in mikroPascal PRO for PIC :

Breakpoints Window

The Breakpoints window manages the list of currently set breakpoints in the project.
Doubleclicking the desired breakpoint will cause cursor to navigate to the corresponding location in the source code.

Breakpoints Window

Watch Values Window

Watch Values Window is the main Debugger window which allows you to monitor program execution. To show the Watch Values Window, select Debug Windows › Watch  from the View drop-down menu.

The Watch Values Window displays variables and registers of the MCU, with their addresses and values. Values are updated along with the code execution. Recently changed items are coloured red.

There are two ways to add variable/register into the watch list :

Also, it is possible to add all variables in the Watch Values Window by clicking Add All Button button.

To remove a variable from the Watch Values Window, just select the variable that you want to remove and then click the Remove Button button, or press the Delete key.
It is possible to remove all variables from the Watch Values Window by clicking Remove All Button button.

You can also expand/collapse complex variables i.e. struct type variables, strings, etc, by clicking the appropriate button (- or -) beside variable name.

Watch Values Window

Double clicking a variable or clicking the Properties Button button opens the Edit Value window in which you can assign a new value to the selected variable/register. Also, you can choose the format of variable/register representation between decimal, hexadecimal, binary, float or character. All representations except float are unsigned by default. For signed representation click the check box next to the Signed label.

Edit Value Window

An item's value can also be changed by double clicking item's value field and typing the new value directly.

RAM Window

The RAM Window is available from the drop-down menu, View › Debug Windows › RAM.

The RAM Window displays the map of MCU’s RAM, with recently changed items colored red. The user can edit and change the values in the RAM window.

mikroICD Specific : RAM window content will be written to the MCU before the next instruction execution.

RAM Window

Stopwatch Window

The Software Simulator Stopwatch Window is available from the drop-down menu, View › Debug Windows › Stopwatch.

The Stopwatch Window displays a Current Count of cycles/time since the last Software Simulator action.
Stopwatch measures the execution time (number of cycles) from the moment Software Simulator has started and can be reset at any time.
Delta represents the number of cycles between the lines where Software Simulator action has started and ended.

Stopwatch Window

  Notes :

EEPROM Watch Window

  Note : EEPROM Watch Window is available only when mikroICD is selected as a debugger.

To show the EEPROM Watch Window, select Debug Windows › EEPROM  from the View drop-down menu.
The EEPROM Watch Window shows current content of the MCU's internal EEPROM memory.

There are two action buttons concerning the EEPROM Watch Window :

EEPROM Watch Window

Code Watch Window

  Note : Code Watch Window is available only when mikroICD is selected as a debugger.

To show the Code Watch Window, select Debug Windows › Code  from the View drop-down menu.
The Code Watch Window shows code (hex format) written into the MCU.

There is one action button concerning the Code Watch Window :

Also, you can set an address scope in which hex code will be read.

Code Watch Window

Copyright (c) 2002-2012 mikroElektronika. All rights reserved.
What do you think about this topic ? Send us feedback!
Want more examples and libraries? 
Find them on LibStock - A place for the code