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.

[参考译文] TM4C123GH6PM:了解我们是否正在从代码调试/发布

Guru**** 2522770 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1283455/tm4c123gh6pm-getting-whether-we-are-at-debug-release-from-code

器件型号:TM4C123GH6PM

您好!

如何执行#ifdef debug ...#endif、当 CCS 进行调试时、编译器将编译...语句\、但在发行时不编译。

此致、

C

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好 CAN、

     我想您知道如何管理 Configuration。 处于调试配置中时、您将把调试添加为预定义符号。 在 Debug 模式下编译时、它将编译 #ifdef debug 中的 debug 语句。