How to get Javascript Function Calls/Trace at Runtime

前端 未结 8 1908
天命终不由人
天命终不由人 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:52

    Give a try to diyism_trace_for_javascript.htm:

    https://code.google.com/p/diyism-trace/downloads/list

    eval('window.c=function(){3+5;}');
    declare_ticks_for(window);
    
    function a(k, c) {
      return k + 2;
    }
    
    function b() {
      4 + 3;
      a(3, {'a':'c','b':'d'});
      c();
      return 5 + 4;
    }
    
    b();
    

    View logs in console tab of chrome or firefox

提交回复
热议问题