> On 12/23/05, Harold Hallikainen wrote: >> This is normally caused by your trying to watch a local variable outside >> the function in which it is defined (or watch a static global variable >> outside the file in which it is defined). Automatic local variables >> don't >> even exist outside of the function since they are stored on the stack. >> Static local variable exist but are protected from access outside the >> function. > > Hi Harold, > > Well, it sort of helps. I think I need to study up more on variables > and relocatable code. > > However, what happens if I really wanted to watch a local variable? I > just added them to the watch window - how can I tell MPLAB what > function I'm in? > > Thanks! > > Josh > -- You should be able to set a breakpoint within the function where the variables are in scope. When the debugger stops in the function, you can see the current values. Harold -- FCC Rules Updated Daily at http://www.hallikainen.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist