This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Local variables,Watch Window, CC studio 3.3

Other Parts Discussed in Thread: TMS320F2812

I had the following experience with local variables in CC Studio(V3.3). The local variables were not appearing in the watch window , I came across various posts with following solutions:

a) Set the breakpoint within the function

b) Recheck stack size

c) Remove optimization

While this had solved problems for many others , in my case even after all these were done , I still could not get the local variables to be displayed in the watch window.

Finally today ,I got the breakthrough with this problem and hence I am sharing the solution in this forum.

Presence of code of following nature caused the problem[ i.e static variable definition within an innerscope(for,while) etc..] :

func()

{

....

 while(condition == true)

{

static int a = 5;

.....

}

 

}

Note:  Even if one function had such a code , all local variables within the software became non-viewable  in watch window.