You are currently browsing the Pilot’s Logbook weblog archives for the day 6. February 2008.
- 1. March 2010: Solve this!
- 29. January 2010: PIC32 Starter Kits Software v2.0
- 27. January 2010: Animation on the MikroE PIC32MX4 Multimedia Board
- 26. December 2009: Merry Christmas and Happy New Year
- 18. November 2009: MikroE MX4 Multimedia Board
- 30. September 2009: Good old printf() (continued)
- 26. August 2009: Changing habits... and dreaming a bit
- 24. July 2009: Where is my RAM?
- 15. July 2009: Olimex PIC-P32MX board
- 28. June 2009: A Great New Board from mikroElektronika
Archive for 6. February 2008
Watching Expressions
6. February 2008 by pilot.
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!
Posted in Tips and Tricks, MPLAB | No Comments »