在“网络"选项卡中获取请求启动器堆栈 [英] Get request Initiator stack in Network tab

查看:55
本文介绍了在“网络"选项卡中获取请求启动器堆栈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开发工具的网络"标签中的每个请求都有一个发起者"列.

Each request in the "Network" tab of the dev tools has an "Initiator" column.

对于AJAX请求,这几乎没有用,因为jQuery会执行所有实际请求,并最终在此处结束.

For AJAX requests this is mostly useless since jQuery does all of the actual requesting and ends up in here.

我隐约阅读了Google文档中的内容( https://developers.google.com /chrome-developer-tools/docs/protocol/tot/network ),了解有关Initiator对象实际上如何包含堆栈跟踪的信息……那么:我该如何获取?

I vaguely read something in Google's documentation (https://developers.google.com/chrome-developer-tools/docs/protocol/tot/network) about how the Initiator object actually contains a stack trace ... So: how can I get that?

推荐答案

此问题的最新答案,但是如果将鼠标悬停在Initiator的链接上,则堆栈会在悬停中弹出.如果您仔细浏览弹出窗口,则可以单击堆栈顶部的呼叫源行.

Late answer for this, but if you hover over the link for the Initiator the stack pops up in a hover. If you carefully navigate into the popup you can click to the source lines of calls further up the stack.

这篇关于在“网络"选项卡中获取请求启动器堆栈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆