Debug Watch does not show all of an array
I am hoping someone here will know about this. Microchips forum has not helped.
I am using MPLAB 8.63, PicBasic Pro 2.60C, 18F2525 and PicKit3 for debugging.
I am reading GPS - GPGSV sentence data into an array: GPGSV var byte[90]. Then parse the data using the arrayread command.
I am seeing some unexpected data in my parsed data and would like to see the original array to determine where it is coming from.
When I try to Watch the GPGSV array in debug I only get 1 byte for data. I have tried changing the Watch to GPGSV[some index] but that gives an error.
What can I do to see the whole array???
Re: Debug Watch does not show all of an array
Easiest way I know is to add absolute watches.
assuming this snip
Code:
MyArray VAR BYTE [20]
CounterA VAR BYTE
START:
FOR CounterA = 0 TO 20
MyArray[CounterA] = 20-CounterA
NEXT
FOR CounterA = 0 TO 20
MyArray[CounterA] = CounterA
NEXT
GOTO START
In watch window, If I add _MyArray, it's address is set to 0x01D. That's MyArray[0]... period. If I want to watch the whole thing, what I'll do is to add Absolute addresses watches.
Easy step-by step:
1. in watch windows right click ...somewhere then select add
2. At the bottom of the window, you'll have 2 fields... start address & end address. I set start address with 0x01D (begining of MyArray), and end address with 0x031...
3. click on add address.
4. click on done
Congrats, you're done.
Re: Debug Watch does not show all of an array
That worked. Thank you very much.
Re: Debug Watch does not show all of an array
You're welcome! You can also use the File Registers Window, but I think the Watch windows is more convenient...