开发者

In Firefox how to find out the code line that makes a request?

开发者 https://www.devze.com 2023-04-13 02:42 出处:网络
Is there an extension or Firebug feature that will tells me the exact line and file from which a HTTP request is made?

Is there an extension or Firebug feature that will tells me the exact line and file from which a HTTP request is made?

In Firebug, the Net tab shows the HTTP headers but not the line that triggered the request. The Console tab will report request with error codes and their expec开发者_运维百科ted URL but again without the line where the request is made from the CSS, JavaScript or HTML file.

In Firefox how to find out the code line that makes a request?

Thanks in advance.

EDIT: A possible use case is to be able to quickly see in the browser image requests that return 404 - in which file (there might be several CSS files) the request was initiated and the line.


No Firebug feature (most likely no extension either)

Firebug doesn't display that and what's even more is that most production-level web applications use minified scripts so this info wouldn't be valuable anyway...

If you're developing an app, you don't use minified scripts but then you know which call initiated a request. But if you're looking at other running apps than minification will make it impossible to determine calling code.

Search in files

Many text editors nowadays support search/find in files feature which makes it possible to search several files at once so you don't have to do it manually yourself. Simple editors like Notepad++ support this as well as several IDEs (like Visual Studio). This makes it simple for you to find culprits that requested those missing files1.

1: But I agree... Such feature would be great if supported directly in Firebug.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号