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.

[参考译文] CCS:如何使用动态 printf

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/613486/ccs-how-to-use-dynamic-printf

工具/软件:Code Composer Studio

你好。 我是 CCS 的初学者(Ver.7.2.0)。

我尝试通过右键单击编辑器窗口来使用动态 printf。 ("添加动态打印")

然后、我运行程序。 但在"Console"窗口中有任何消息。

当我在同一条线路上设置断点时、程序将停止。 因此、PC (程序计数器)肯定会在该行中停止。

是否需要特殊设置才能使用动态 printf?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!
    动态 printf 是 GDB 的一项功能。 如果您未将 CCS 配置为使用 GDB 而不是默认 CCS 调试器、则它将不起作用。

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

    你好,Ki-Soo,

    感谢您的回复。

    我想使用默认 CCS 调试器、因此我放弃尝试使用动态 printf。

    此致、

    牛仔