Reputation: 73908
I would like to know if it is possible to watch specific function calls and its arguments using Google Chrome developer tools.
For example using:
var myFunc= function(a,b){
};
I need to log the values passed in (a,b
) every time myFunc
is called in my application.
Upvotes: 4
Views: 2344
Reputation: 73908
I found answer to my question, basically I can use monitor(function)
resource here
monitor(function)
When the function specified is called, a message is logged to the console that indicates the function name along with the arguments that are passed to the function when it was called.
Upvotes: 7