Hi Wouter, I found this might related to your problem. Have you tried this? 91. How do I view local variables in MPLAB? 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.number" http://www.ime.usp.br/~jstern/introdcomp/faqpacificc.htm#faq91 Tamas On Sun, Nov 15, 2009 at 8:01 PM, Wouter van Ooijen wrote: > I am trying (for the first time) to debug a Hi-Tech C program in MPLAB > (8.4) with a pickit2 (actually a clone). My problem is that after > view->locals I get an empty locals window. Is this the place where I > should see values of local variables? I can single-step through the > program OK, so I assume I have enabled all debug settings, or could I > have missed something? > > -- > > Wouter van Ooijen > > -- ------------------------------------------- > Van Ooijen Technische Informatica: www.voti.nl > consultancy, development, PICmicro products > docent Hogeschool van Utrecht: www.voti.nl/hvu > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- /* www.mcuhobby.com */ int main() { char *a,*s,*q; printf(s="/* www.mcuhobby.com */ int main() { char *a,*s,*q; printf(s=%s%s%s, q=%s%s%s%s,s,q,q,a=%s%s%s%s,q,q,q,a,a,q); }", q="\"",s,q,q,a="\\",q,q,q,a,a,q); } -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist