View value of variable delcaired as 'const' in IDE

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

View value of variable delcaired as 'const' in IDE

1,322 Views
StevenBak
Contributor I
When using #define myTrue 1, I can click on myTrue and view the definition. Preferably, I would like to use const int myTrue = 1;. When doing this, it would be nice if I could mouse over the variable and see the definition, or at least the ability to navigate to the definition via a right click. 
 
Labels (1)
0 Kudos
Reply
1 Reply

346 Views
J2MEJediMaster
Specialist I
In most versions of CodeWarrior, after you've built the project, you can right-click on a definition name and you should get a pop-up menu that lets you jump to the variable declaration or definition. You may want to check that the compiler is generating symbolics in the project's settings window (type ALT + F& to call up this window). One such location is the Build Extras panel. Check that Generate Browser Data From option is set to something other than None. The compiler settings panels may also have symbolics generation settings, but these vary between the various MCU types so I can't give you a definite answer there.

---Tom
0 Kudos
Reply