I want to open this interface to look the source code or response, like below:

enter image description here

But, when I want to open the localhost:8080/xxx's page, I found I do not able to open that, it is gray:

enter image description here

So, how to resolve it in Safari?

  • 2
    Pro tip: if you want to show screenshots with english version of the Safari, you can type this in Terminal: /Applications/Safari.app/Contents/MacOS/Safari -AppleLanguages '(en)'. – Mateusz Szlosek Feb 6 '17 at 9:42
  • 1
    @Mateusz Szlosek, now I have updated my post, so review it. – aircraft Feb 6 '17 at 9:49
  • Can You show us what is the "source" of the html file you want to inspect? I mean content of the file you want to open. – Mateusz Szlosek Feb 6 '17 at 9:52
  • @Mateusz Szlosek, it is a Servlet page, and maybe it has no html contents here. But I use firefox can open the Web Inspector. – aircraft Feb 6 '17 at 9:55
  • What is shown when you Secondary/Right click on a page and select Inspect Element? – Mateusz Szlosek Feb 6 '17 at 9:57

There's another way of showing the Web Inspector.

Right/Secondary click on a web page and select: Inspect Element or Review the elements.

| improve this answer | |

The option is inactive because Safari doesn't understand the content type (MIME type) of the page or doesn't think it's HTML.

To open Web Inspector, use "Inspect Element" after right-clicking an element on the page, or open the Web Inspector on another page and then navigate to this page.

| improve this answer | |

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .