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.
工具与软件:
您好!
我在 LP-MSPM0L1306示例中将2个断点放置到 while 循环;gpio_toggle_output.c:
但调试中、第2个断点将变为灰色并被忽略:
为什么? 我如何在 while 循环中使用多个断点?
此致!
奥津靖则
我的第一个猜测是代码已经被编译器重新排序、使得第二行(在某种意义上)"不存在"。 Toggle 函数是内联函数、由简单的赋值语句组成。
如果你在第一个断点处停止、然后"单步执行"、我会想知道你最终到达的位置;这可能会告诉你函数调用的位置。