修復 macOS 上 Chrome DevTools 設為獨立視窗後無法顯示的錯誤

錯誤描述

MacOS 使用 Chrome DevTools,並且把 Dock side 設定為獨立視窗 (Undock into separate window) 後,有機會下次開啟 DevTools 時 DevTools 視窗不會顯示,這會導致連修改 Dock side 都沒辦法,因為按鈕就在 DevTools 裡面,現在整個 DevTools 都不顯示自然連改都沒辦法。

修正方式

  1. 打開 ~/Library/Application Support/Google/Chrome/Default/Preferences
  2. 刪除 "currentDockState": "\"undocked\"",
  3. 具體鍵值位置在 devtools > preferences > currentDockState

Bug Description

When using Chrome DevTools on macOS and setting the Dock side to “Undock into separate window,” there is a chance that the next time DevTools is opened, the DevTools window will not appear. This causes an issue because the Dock side button is located within DevTools itself, so when the entire DevTools window fails to display, it becomes impossible to change the setting back.

Fix Method

  1. Open ~/Library/Application Support/Google/Chrome/Default/Preferences
  2. Delete the line "currentDockState": "\"undocked\"",
  3. The specific key path is devtools > preferences > currentDockState.
載入評論