Added watch expression as local variables

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Added watch expression as local variables

1,350 Views
vladstoica
Contributor III

Hello, I added a local variable from another file than main to watch expression and I get "Error:multiple error reporter", I also put a dynamic printf breakpoint at that line.  Why it is giving that error? The variable is declared and defined in a local function, for other variables that are global variables it works fine, but for local variables I get this error.

 

Thanks,

 

Vlad

Labels (2)
Tags (2)
0 Kudos
Reply
1 Reply

1,180 Views
martin_kovar
NXP Employee
NXP Employee

Hi Vlad,

if you add local variable to the expression window, you can see its value only if the debugger steps through the function, where the variable is created. Local variables are created on the stack and exist only when the function is executed. This is the reason why you get the error.

Regards,

Martin

0 Kudos
Reply