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 expected URL but again without the line where the request is made from the CSS, JavaScript or HTML file.
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.
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 expected URL but again without the line where the request is made from the CSS, JavaScript or HTML file.
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.
Share Improve this question edited Oct 18, 2011 at 8:07 Martin Dimitrov asked Oct 16, 2011 at 7:53 Martin DimitrovMartin Dimitrov 4,9766 gold badges50 silver badges64 bronze badges 7- in firebug you could use Console -> Profile, that will show you the GET and line number – david Commented Oct 16, 2011 at 8:25
- As far as I can see the profiler gives information about the javascript functions that are being executed. But I don't see information about the HTTP requests. – Martin Dimitrov Commented Oct 16, 2011 at 8:59
- I believe you cannot get the exact line number. Just curious, why do you need the line number making the request? – Raghav Commented Oct 17, 2011 at 21:39
- It'd be nice if you could explain your problem or tell us why you need to know in witch file and line the request is made. – Termi Commented Oct 18, 2011 at 5:57
- @Termi: When modifying an existing WordPress site, there were several image requests with 404. I wanted to know where the requests are made, the site has many css files. Not that is that hard to search in the files but such a firebug feature will save several minutes. – Martin Dimitrov Commented Oct 18, 2011 at 7:09
1 Answer
Reset to default 6No 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.
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745181120a4615422.html
评论列表(0条)