Log all function invocations to console

前端 未结 5 1058
醉梦人生
醉梦人生 2021-01-24 01:43

It occurs pretty often that I start debugging a class by logging every function call to console and looking for differences in the bugged cases. Is there some attribute that I c

5条回答
  •  悲&欢浪女
    2021-01-24 01:50

    In the dim dark ages of software engineering, one often used a profiling tool to achieve that since profiling injected extra code at entry and exit of all functions, although I must say that this is a pretty dismal approach to debugging and when I used it, it was a desperation move not front line. Debugging by print statement is fairly slow and ineffective.

提交回复
热议问题