Added watch expression as local variables

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Added watch expression as local variables

1,352件の閲覧回数
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 返信

1,182件の閲覧回数
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 件の賞賛
返信