Debugging javascript functions

Is there a way in Firebug (or any other debugger) to see the functions called when the page loads?

Edit: the breakpoint is not really what I'm looking for - I would like functions to be called with arguments that are passed when I work on the page - something like a console - where I can see Http AJAX Post Messages - with messages and replies.

Edit2: it looks like Profiler is what I was looking for - but is there a way to look at the parameters passed to the function and the return value?

+3
source share
3 answers

You can always print it yourself. (I know this is not the answer you wanted.)

,

<div id="debug"></div>

.

:

function log(str) {
  $('#debug').append(str); // I'm using jQuery here
}

javascript, :

function myFunc(foo, bar, baz) {
  log("myFunc called with ("+foo+", "+bar+", "+baz+")<br/>");

  // your stuff
}

, ().

+2
+2

I think you need to make this more specific if you want more specific answers than just using a breakpoint. Do you know what code profiling is? Is that what you want to do? You can google for the "firebug profiler", and there is also some information right here on SO, for example. Firebug Profiler Overview

+1
source

Source: https://habr.com/ru/post/1715762/