This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

cant add variables to watch

HI, some variables i cant add them to the watch in debug mode. i get : error 34: undefined identifier.
e.g.

for (n=0;n<N_Sample;n++) { code.......... }

i want to add n to watch..??????

Parents
  • i)
    Before the debugger run to initialize the "n", uVision3 can't add this variable to watch window.

    ii)
    If the debugger run in other funtion that not in your this one function, also cant add this variable. If you succesful add this one variable in watch window, after you run in other funtion, this one variable will become "out of scope".

    iii)
    If you initial "n" as global varaible, yes you can add this variable after the debugger had initial this variable in any place (function, file).

Reply
  • i)
    Before the debugger run to initialize the "n", uVision3 can't add this variable to watch window.

    ii)
    If the debugger run in other funtion that not in your this one function, also cant add this variable. If you succesful add this one variable in watch window, after you run in other funtion, this one variable will become "out of scope".

    iii)
    If you initial "n" as global varaible, yes you can add this variable after the debugger had initial this variable in any place (function, file).

Children