[英]Using chrome debugger is there a way to see what function called my api?
I have like 100 api calls in the network tab for chrome debugger and I want to know what function called for each specific API. 我在chrome调试器的“网络”标签中有100个api调用,我想知道每个特定API调用了什么函数。 I can't provide code but I can explain it more Let say on the Network tab you get like so many different Rest API calls and not all of them are the same and yo want to know for one of them which function called that specific API. 我无法提供代码,但我可以进一步解释。在“网络”选项卡上,您会得到许多类似的Rest API调用,但并非所有调用都是相同的,所以您想为其中之一了解哪个函数调用了该特定API 。
The "Initiator" column will give you a stack trace of what initiated the network request. “发起程序”列将为您提供发起网络请求的堆栈跟踪。 For example, here on Stack Overflow: 例如,在堆栈溢出中:
As you can see, the request to validate-body
was made from send
in jQuery, which came from ajax
, which came from an anonymous function in Stack Overflow's post-validation.en.js
script (you can click on the blue underlined text to scroll to each line in question). 如您所见, validate-body
的请求是由jQuery中的send
,该请求来自ajax
,后者来自Stack Overflow的post-validation.en.js
脚本中的匿名函数(您可以单击带下划线的蓝色文本滚动到相关的每一行)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.