Segment Of Array
Segments.png

You can separate an array to be able to watch just a segment of data. If you have a large buffer, you can focus on just a few elements by providing the direct indexes of what you want to view, for example: [200:202].

Application

In order to use the Watches Window, MPLAB® X must be in operating in a debug sessionMain_Debug_Project.png

1

Open the Watches Window (Alt + Shift + 2).

WatchesWindow.png
NewWatch.png

Select the name of the array you are interested in. Next to the name of the array enter the open bracket symbol "[", followed by the closing bracket "]". Inside the brackets, type in the starting and ending indexes of the array elements you want to view, separating them with a colon. Lastly, click OK.

4

You should now see the selected elements in the Watches Window.

SelectedElements.png