- AV16/32 (6)
- builtin (1)
- Chapter 1 (2)
- Chapter 12 (3)
- Chapter 14 (1)
- chapter 2 (1)
- Chapter 3 (1)
- Chapter 4 (1)
- Chapter 5 (4)
- Configuration (1)
- Events (2)
- Flying (4)
- I2C (5)
- Linux (2)
- MPLAB 8.00 (5)
- mplab c30 v3.02 (11)
- PIC24 (2)
- PIC32 (11)
- Tips and Tricks (15)
- Tools (11)
- Warnings (2)
- 5. January 2009: Tremor
- 27. December 2008: Merry Christmas and Happy New Year
- 19. November 2008: Bending the laws of physics
- 13. November 2008: Electronica 2008
- 6. November 2008: Deep Blue PIC32
- 4. November 2008: MIPS DSP Libraries
- 1. November 2008: Inexplicably Working Errata
- 26. October 2008: PIC32, Harvard or Von Neumann
- 22. October 2008: Back online, Excuses and the Blues Brothers
- 28. July 2008: Not a dsPIC!
Blogroll
PIC24
PIC32
Watching Expressions
MPLAB has become such a large application, or I should better say “group” of applications, and it keeps evolving so fast that one can hardly keep up with the pace of monthly (when it is not weekly) updates. Typically before rushing to install a new version I scan quickly through the readme files to see if there is anything new that I could use immediately, otherwise I tend to postpone the update to let it … settle a bit, if you know what I mean.
With MPLAB 8.00 things were different. The PIC32 had just been announced and this was the first new version of MPLAB to openly support it. I was too curious to pass the opportunity and I did the install without paying much attention to what other features had been added. Turns out, I made a mistake because I failed to notice a powerful update to the Watch window capabilities!
Now you can inspect/watch:
- Aspecific element of an array: ar[12]
- An object pointed to by a pointer: *ptr
- An element of a structure/union: str.mbr
- An element of a structure/union via a pointer: p->mbr
- Perform simple math: vrbl-1
- Use constants defined in the program in all of the above: ar[M_SIZE-1]
Just type these simple expressions directly in the watch window in the Symbol Name column
it will work seamlessly allowing you to get a better picture of your… bugs!
Leave a Reply
You must be logged in to post a comment.