Let\'s say someone wrote a method like this in a file called app.js
trying to peform an XHR request angainst a non existing url:
app.controller(\'Ma
XHR requests are stacked in $http.pendingRequests
array and are send later. Which is why you can't find a direct linked between where $http
is called and where the actual XHR request is made.
If you want to know which function called $http
you have to set a breakpoint in $http
function.
It kinds of defeat the whole "XHR breakpoints" purpose in my opinion.