AnsweredAssumed Answered

MCUXpresso enable code define in debug mode

Question asked by Ken Su on May 16, 2017
Latest reply on May 18, 2017 by Kerry Zhou

Hi,

 

Can MCUXpresso enable source code define when MCUXpresso is in debug mode "automatically" with some setting?

 

 

Example:

 

#define _IS_IN_DEBUG_MODE_  //<--  if MCUXpresso is in debug mode, this define is on or defined.

 

void function()

{

   #if defined(_IS_IN_DEBUG_MODE_  )

 

    //compiler when    _IS_IN_DEBUG_MODE_ is defined

 

  #endif

 

 

}

Outcomes