Join the Mozilla’s Test Days event from Dec 2–8 to test the new Firefox address bar on Firefox Beta 134 and get a chance to win Mozilla swag vouchers! 🎁

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Code displayed in the debugger does not match the response received from the server

  • 6 个回答
  • 1 人有此问题
  • 6 次查看
  • 最后回复者为 GNURush

more options

See the attached screenshots and note the error function that is present on line 215 in the response, but does not appear in the debugger. The issue occurs in Firefox 58.0 (64-bit) and Firefox developer edition 59.0b2 (64-bit). I have enabled the option to disable HTTP cache when the developer toolbox is open.

See the attached screenshots and note the error function that is present on line 215 in the response, but does not appear in the debugger. The issue occurs in Firefox 58.0 (64-bit) and Firefox developer edition 59.0b2 (64-bit). I have enabled the option to disable HTTP cache when the developer toolbox is open.
已附加屏幕截图

所有回复 (6)

more options

Try to ask advice at the Stack Overflow forum site. That website is more suitable for questions about web development.

more options

Clearing the cache from the settings menu makes the changes show up in the debugger on the next refresh. It is tedious to clear the cache every time I make a change, so I have disabled caching in about:config, but that slows down browsing everywhere, all the time. It would be nice to have the option to disable local cache while the developer toolbox is open, but I suppose that this has turned into more of a feature request than a question, so I will try a different forum.

more options

There is a checkbox in the toolbox settings to disable the HTTP cache when the toolbox is open.

more options

As stated in my original post, the problem persists with that option enabled. Furthermore, the response from the server contains the updated code, so the caching must be happening locally. I've found an open request in Bugzilla and added what information I can to it: https://bugzilla.mozilla.org/show_bug.cgi?id=1363534

more options

FF can't change codes AFAIK. So did you contact the IT department to ask them what is going on as well?

more options

I am a part of the small IT department at our company. In the screenshots attached to my original post, you can see that the Firefox debugger is displaying different code than it received. Firefox executes the new code received from the server as expected, but I cannot set breakpoints on any new code that I add if it is not displayed in the debugger.