1

I am debugging a webapp in Chrome and seeing something like window.MyApp.getSomeStats(). I can call it and see some output.

Is this possible to navigate to source of the code of this function/method in "Source" tab?

Sergei Basharov
  • 51,276
  • 73
  • 200
  • 335
  • Possible duplicate of [Find JavaScript function definition in Chrome](https://stackoverflow.com/questions/9828876/find-javascript-function-definition-in-chrome) – Adrian Dec 19 '18 at 12:48
  • 1
    You could just drop a break point on the line that calls the function and then "step into" the function call in the Chrome debugger. At least if it's a simple function (e.g. not an async function). – newBee Dec 19 '18 at 12:51

0 Answers0