So the scenario is: there are a lot of javascript code in a page. If I click a button, it will trigger a certain piece of the code. But I'm not the author of the page so I don't know which file contains that piece nor which function. Is there a way to set such a breakpoint so that I can check the code when it gets executed?
EDIT: Thanks for the comments. I found where exactly my problem was. That page calls a method in a library every second so chrome always steps in that method instead of what I really want, which confused me as I thought it wasn't debugging the code correctly. To solve that I asked chrome to ignore the code in that library. That is a experimental feature in chrome for now. This article describes the way to achieve that: http://www.divshot.com/blog/tips-and-tricks/ignoring-library-code-while-debugging-in-chrome/