简体   繁体   English

使用chrome调试器可以查看称为我的api的函数吗?

[英]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 。

Are you looking for something like this? 您是否正在寻找这样的东西?

Chrome调试器网络标签

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.

相关问题 确定在Chrome中调用什么JavaScript函数 - Determine what javascript function is called in chrome 使用 Jest.fn() 查看 s3.upload 函数是否被调用......我做错了什么? - Using Jest.fn() to see if s3.upload function was called...what am I doing wrong? 如何借助Firebug或IE 8调试器或chrome调试器找出javascript函数的流程? - Way to figure out the flow of javascript function with the help of firebug or IE 8 debugger or chrome debugger? 使用 chrome.debugger 库发送信件的正确语法是什么? - Using the chrome.debugger library what is the proper syntax for sending a letter? chrome JavaScript调试器:如何输入值并查看? - chrome javascript debugger: how to enter value and see it? Chrome调试器中的这个十六进制值是多少? - What is this hex value for in the Chrome debugger? 这个Chrome调试器VM脚本是什么? - What is this Chrome debugger VM script? jQuery .click函数不起作用,如何在chrome开发工具中查看? - jquery .click function not working, way to see in chrome dev tools? 有没有办法知道什么叫做我的 HTML 页面 - Is there a way to know what called my HTML page 在 Chrome 调试器中启动 onClick 功能 - Start onClick function in Chrome debugger
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM