Added watch expression as local variables

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Added watch expression as local variables

1,150 次查看
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

标签 (2)
标记 (2)
0 项奖励
回复
1 回复

980 次查看
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 项奖励
回复