为提升您的使用体验,本站正在维护,部分功能暂时无法使用。如果本站文章无法解决您的问题,您想要向社区提问的话,请到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 提问,我们的支持社区将会很快回复您的疑问。

搜索 | 用户支持

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

详细了解

Network Response not formated on devtools

more options

I want to see a response in a formated/pretty way to check for errors on my work. According to this link https://firefox-source-docs.mozilla.org/devtools-user/network_monitor/request_details/index.html#network-monitor-request-details-response-tab it should be possible to do so, clicking a button which formats the response in the network part of the devtools, however this button does not exist on my devtools. In chrome there is the preview tab that shows the response in the way I need, and also as the button to format the response in the response tab. Is it a bug on my end? If not, why is it that way?

I want to see a response in a formated/pretty way to check for errors on my work. According to this link https://firefox-source-docs.mozilla.org/devtools-user/network_monitor/request_details/index.html#network-monitor-request-details-response-tab it should be possible to do so, clicking a button which formats the response in the network part of the devtools, however this button does not exist on my devtools. In chrome there is the preview tab that shows the response in the way I need, and also as the button to format the response in the response tab. Is it a bug on my end? If not, why is it that way?

所有回复 (5)

more options

I think it depends on the file type. For example, Firefox defaults to the JSON view for JSON, or rendered HTML for HTML. I'm attaching an example screenshot (as you can see, Raw is turned off). Not on yours?

more options

jscher2000 - Support Volunteer said

I think it depends on the file type. For example, Firefox defaults to the JSON view for JSON, or rendered HTML for HTML. I'm attaching an example screenshot (as you can see, Raw is turned off). Not on yours?

I am having this issue on this page: https://www.theretailcorrection.com/collections/26-3-22-weekly-retail-release

If you filter the responses with the word "filter" one of them returns a JS file starting with:

/**/ typeof BoostPFSFilterCallback ===

And I want it to be formatted, could you test it?

more options

For JavaScript code, if you want to "pretty print" it, you need to view the file in the Debugger panel.

more options

jscher2000 - Support Volunteer said

For JavaScript code, if you want to "pretty print" it, you need to view the file in the Debugger panel.

Is there a way to see it like Chrome shows it in the preview tab? In Chrome if there is a JSON(or a object, I am not sure now) inside a JS file it "colappses" the vector of objects and you can open one by one by its index. If you the store I sent for example you can see in the response a vector of products of the collection page.

more options

I'm not the best person to compare because I don't use Chrome.

The DevTools team has its own forum, by the way:

https://discourse.mozilla.org/c/devtools/213