Determining full XHR request URL on a Google Chrome XHR Breakpoint

Posted by DanH on Stack Overflow See other posts from Stack Overflow or by DanH
Published on 2011-11-29T01:45:28Z Indexed on 2011/11/29 1:50 UTC
Read the original article Hit count: 352

I am initiating a jQuery ajax ($.ajax) post, within the Google Chrome browser.

I have setup a XHR breakpoint in the "XHR Breakpoints" section of the "Scripts" tab within the Developer Tools.

The criteria of the breakpoint is "get" ie. I want the debugger to break on all XHR requests which contain the word "get" in them (somePage.asmx/getListOfAnimals) is an example.

The breakpoint is being correctly hit, however I am unable to determine what the exact URL that is being requested.

I realize I can remove the breakpoint and see what URL is being requested from the "Network" tab, but I want to know this at the time the breakpoint is hit.

I have tried stepping through the XHR request once it has been hit in Chrome, but I must be missing a Javascript object/property which contains the fully requested URL.

Google Chrome has detected that the XHR requested URL contains "get" but how do I get to this URL from within the debug session before the request is made?

© Stack Overflow or respective owner

Related posts about google-chrome

Related posts about xmlhttprequest