Debug Watch does not show all of an array


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2011
    Posts
    8

    Default 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???

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default 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.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    May 2011
    Posts
    8


    Did you find this post helpful? Yes | No

    Default Re: Debug Watch does not show all of an array

    That worked. Thank you very much.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default 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...
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts