Print function log /stack trace for entire program using firebug

后端 未结 5 1221
温柔的废话
温柔的废话 2020-12-07 23:52

Firebug has the ability to log calls to a particular function name. I\'m looking for a bug that sometimes stops a page from rendering, but doesn\'t cause any errors or warn

5条回答
  •  [愿得一人]
    2020-12-08 00:28

    I accomplished this without firebug. Tested in both chrome and firefox:

    console.error("I'm debugging this code.");
    

    Once your program prints that to the console, you can click the little arrow to it to expand the call stack.

提交回复
热议问题