Cypress技术论坛
直播中

李玉林

7年用户 218经验值
私信 关注
[问答]

单步执行功能无法查看C代码

当我通过代码前进,并尝试调用其他文件(除Meal.C以外)的函数时,它会进入ASM代码,而不是C代码中所写的C代码文件。
但是,我可以步进写在同一文件中的函数,从中调用它们。
这是令人悲伤的,因为你失去了正在发生的事情。大多数项目都涉及多个文件的代码,所以在创建者中调试它们几乎是不可能的。我做错了什么?请指引我。
PSOC岩石
当做,
克曼卡德

以上来自于百度翻译


     以下为原文
  When I'm stepping though code,and try to step into a call to a function thats in some other file(other than main.c),it goes into ASM code,rather than the C code as written in that other C file.
    However,I can stepping into functions written in the same file from which they are called works as expected.
    This is sad when it happens,since you lose track of whats happening.Most projects do involve code from multiple files,and so debugging them in Creator is next to impossible.What am I doing wrong? Please guide me.
     
    PSoC Rocks,
     
    Regards,
    kmmankad

回帖(1)

牛晓渊

2019-4-26 14:07:26
据我所知,控制进入执行代码,然后通过步骤(F11)将带你到汇编代码。你总是可以在一个实现器函数中设置一个断点(在主体.c外),然后再跳过。

以上来自于百度翻译


     以下为原文
   As  far as I know, the control does go into the implementaed code and then furthur step through(F11) will take you to the assembly code. You can always put a breakpoint in a implementer function (outside main.c) and then step over.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分