LPCXpresso IDE confusion about preprocessor symbol DEBUG

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

LPCXpresso IDE confusion about preprocessor symbol DEBUG

559 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DaveNadler on Thu Apr 18 13:34:06 MST 2013
[FONT=Arial]I'm using LPCXpresso v5.1.2 [Build 2065]

In a release build, the IDE does not gray out code within a block such as:
[/FONT]
#if defined(DEBUG) // diagnostic tasks...
  static void vTaskTestSpoileronServo(void *pvParameters)
  { ... } // this line is shown normally (not grayed out as it should be in release build)
#else
  static void vTaskSpoileronServo(void *pvParameters)
  { ... } // this line is grayed out (instead of shown normally as expected for release build)
#endif // defined(DEBUG)
[FONT=Arial]The IDE seems convinced that the symbol DEBUG is defined, which it is not in the release build (really, I checked). The release code compiles and operates as expected, as does the debug code.

Any ideas ?
Thanks,
Best Regards, Dave
[/FONT]
0 Kudos
Reply
2 Replies

511 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by DaveNadler on Thu Apr 18 17:28:14 MST 2013

Quote: CodeRedSupport
Goto:

Window -> Preferences -> C/C++ -> Indexer
Change

- Use the build configuration specified in the project's indexer settings

to:

- Use the active build configuration

[Personally I would like this to be the default setting for new workspaces, but unfortunately there is currently a known issue with Eclipse in that it doesn't allow this to be done.]

Regards,
CodeRedSupport


[FONT=Arial]
I changed the project's indexer setting instead, so I don't have to reset it when I export/import the project (if 5.2.2 ever works for me).
That does it, Thanks !
Best Regards, Dave[/FONT]
0 Kudos
Reply

511 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by CodeRedSupport on Thu Apr 18 16:32:02 MST 2013
Goto:

Window -> Preferences -> C/C++ -> Indexer


Change

- Use the build configuration specified in the project's indexer settings

to:

- Use the active build configuration

[Personally I would like this to be the default setting for new workspaces, but unfortunately there is currently a known issue with Eclipse in that it doesn't allow this to be done.]

Regards,
CodeRedSupport
0 Kudos
Reply