Marc
Marc

Reputation: 2584

Safari Web Inspector Showing Up In New Window By Default

I've been using Chrome and am going back and forth between switching to Safari or staying with Chrome. My one small issue with Safari though is that the web inspector always shows up in a new window every time I toggle it. I press Command-Option-I and it opens in a new window and when I press Command-Option-I again it does not go away. I love the way the web inspector functions in Chrome and am wondering if there's a way to run the same way in Safari.

Any thoughts are greatly appreciated. Thanks!

Upvotes: 17

Views: 22942

Answers (9)

Kate
Kate

Reputation: 1

"com.apple.Safari.WebInspectorPageGroupIdentifier.WebKit2InspectorStartsAttached" = 0;

the param/key/variable is

"com.apple.Safari.WebInspectorPageGroupIdentifier.WebKit2InspectorStartsAttached"

so you would do the following in Terminal

~ % defaults read com.apple.Safari "com.apple.Safari.WebInspectorPageGroupIdentifier.WebKit2InspectorStartsAttached"

FYI, someone made an erroneous reply above which lead me to look into it and got the correct information

they told you to do this ....

~ % defaults read com.apple.Safari "WebInspectorPageGroupLevel1.WebKit2InspectorStartsAttached" defaults[55436:4194341] The domain/default pair of (/Users/*/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari, WebInspectorPageGroupLevel1.WebKit2InspectorStartsAttached) does not exist

Terminal screenshot

Upvotes: 0

starvingPhilosopher
starvingPhilosopher

Reputation: 47

I noticed when you have an open tab like the start page, the web inspector will pop up in a separate window. Also, there are no icons in the web inspector to attach it to the bottom or side. If you have a webpage open and do the same thing in the same window, that tab will have the web inspector attached to the bottom of the page (or whatever your attachment selection was prior).

Upvotes: 1

Milovan Tomašević
Milovan Tomašević

Reputation: 8673

Try clicking as shown:

enter image description here

I hope you get as shown:

enter image description here

Upvotes: 1

user3252885
user3252885

Reputation:

I have had the issue for a long time. Here is the solution.

  1. Right-click on a web page and select inspect element.
  2. The console window appears in Fullscreen. Minimize the window like any Safari web page and it should a window like below.
  3. Just above the 'Elements' tab, you should be able to see 2 icons. Clicking the icon on the left, opens the Console in right side of the browser and clicking the icon on the right, opens the Console in bottom of the browser

Hope this helps.

Upvotes: 25

Kartheek Sarabu
Kartheek Sarabu

Reputation: 3926

Follow these steps to fix safari issue

  1. Go to Develop --> User Agent --> Safari --> Select iphone --> then click on right side top symbol...
  2. Select it and do inspect then you can see the button on left side top corner.
  3. Now set to default setting by redoing the first point.

Please follow the step

Upvotes: 1

user3491125
user3491125

Reputation: 366

None of the methods upon are working for me (Safari 9.1), if you want to make the docking buttons of the inspector showing up:

  • open Terminal
  • type defaults read com.apple.Safari "__WebInspectorPageGroupLevel1__.WebKit2InspectorStartsAttached"

Once you checked if it returns 0, do: defaults write com.apple.Safari "__WebInspectorPageGroupLevel1__.WebKit2InspectorStartsAttached" 1

Upvotes: 11

dlchang
dlchang

Reputation: 957

The only method that seemed to work for me was to resize the browser to a big enough size that it was big enough to contain the smallest size of an individual Inspect window. This for me, was widening the browser to at least around 65% percent width of the screen, and then you can "Inspect Element" and the default would be that the Inspect window would be at the bottom of the browser, and the browser with the Inspect window in it is resizable to any size now. Hope this helps some people.

Upvotes: 2

loislo
loislo

Reputation: 14119

You could press the leftmost button at the Inspector's status bar and Inspector will dock.

UPDATE: Now, the button is on the right. When Inspector is in a separate window, the two small buttons in its upper right corner make it move to the 1) bottom of the Safari window 2) right side of the Safari window.

Upvotes: 3

KARASZI István
KARASZI István

Reputation: 31467

It's a bug in the Safari codebase.

Here is the bugreport and they're working on it (source)!

Upvotes: 7

Related Questions