How to get Javascript Function Calls/Trace at Runtime

前端 未结 8 1907
天命终不由人
天命终不由人 2020-12-23 13:56

As I interact with my AJAX based application at RUNTIME I\'d like the console to spit out all the functions it\'s calling. (so no stack trace, or breakpoints, or pr

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-23 14:50

    Maybe you can have JavaScript do some of the work of adding console.log for you:

    Adding console.log to every function automatically

    Also this blog by Paul Irish might help:

    http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/

    It includes a link to some JavaScript specifically targeted at logging arguments:

    http://pastie.org/1033665

提交回复
热议问题