Announcement

Collapse
No announcement yet.

debug variable watch help needed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • debug variable watch help needed

    I want to watch a buffer during debugging. The buffer is defined in another function as a static byte array and my function has a pointer to a byte in it.

    How can I watch the whole array (or at least the first say 64 bytes) in the debug variable watch window?

  • #2
    Hopefully someone else has a better answer, but to date if I need to watch elements of an array, I have to place a watch on each element separately, which as you can see is a royal pain when you need to watch (as you say) 64 elements within the array
    Engineer's Motto: If it aint broke take it apart and fix it

    "If at 1st you don't succeed... call it version 1.0"

    "Half of Programming is coding"....."The other 90% is DEBUGGING"

    "Document my code????" .... "WHYYY??? do you think they call it CODE? "

    Comment


    • #3
      Originally posted by Cliff Nichols View Post
      ...a royal pain ...
      quite. For a first-class compiler it is a surprisingly skimpy debugger, but then my programming is so bad I have become a pretty nifty debugger under even the most trying of circumstances!

      Comment


      • #4
        Could you not string some bytes together in a tempstring and watch them in that tempstring?
        As in:
        temp$=format$(bytearray(1))+" "+format$(bytearray(2))...
        Then watch the temp$ or as many temp$s as required, space allowed.
        Not a perfect solution perhaps but....

        Rod
        Rod
        In some future era, dark matter and dark energy will only be found in Astronomy's Dark Ages.

        Comment


        • #5
          Originally posted by Rodney Hicks View Post
          Could you not string some bytes together in a tempstring and watch them in that tempstring?
          Yes. I ended up doing a block move into a string and watching that.
          Originally posted by Rodney Hicks View Post
          Not a perfect solution perhaps...
          My very point.

          I seem to have let it get to me! temporary suspension of the nil carborundum principle.

          Comment

          Working...
          X