Is there a way to Track/trace and log all the methods, by Class and Method name, during a debug session?

前端 未结 3 656
面向向阳花
面向向阳花 2020-12-17 20:06

I am not interested in logging into frameworks or under the covers but only at my source level code upon entry and exit of each method. I would like it to provide Class Name

3条回答
  •  我在风中等你
    2020-12-17 20:30

    Xtrace (https://github.com/johnno1962/Xtrace) has many features and works well for tracing Objective-C. One needs source access to their project, like you appear to have, and can emit messages on entry/exit, like you appear to want.

    • Debug-time configuration - can hard-code or configure tracing while debugging
    • Uncomplicated integration - one .mm and one .h
    • NSRegularExpression matching - classes, methods, types

提交回复
热议问题