javascriptdebugginggoogle-chrome-devtools

Chrome Dev Tools - Start debugging by function name


Is there any way to specify the debugger for listening for specific method names? Example: When the function myFunc get called, I want to start debugging. Yes, I know that this seems strange, but in some projects I don't know the name of the javascript file to start the debugging, but I do know the name of the method.

It would be something like the Event Listener Breakpoints, but with an arbitrary method name instead an event name.


Solution

  • You can find the function name with a search and set the break point. You can use the following key combination to search accross the files.

    enter image description here