How do I view local variables in MPLAB 5 if using a v7.xx or v8.xx compiler?
To be able to view local varibles in MPLAB, be sure to compile your project with the option “Generate Debug Info” for each node. Also add to the HEX file node the additional command line option -FAKELOCAL Local variables will then be seen in the format: function_name.local_var So for example, if you had a local variable called “number” and it was within a function called “testing”, then it would appear in the symbol list as “testing.