问题
I did a stupid thing. In the devtools (Chrome 69 on macOS Sierra 10.12) under "Sources > Filesystem > Add folder to workspace", I accidentally tried to add my system root (/) as a folder.
Now whenever I open the devtools, Chrome and mtmfs (Mobile Time Machine file system daemon) goes to 100% CPU.
The folder list is empty, so is the list in "Settings > Workspaces".
Can I fix this situation somehow without deleting my current profile? (I like my current profile...)
回答1:
I would expect that "Restore defaults and reload" at the bottom of Settings > Preferences would clear this.
If that doesn't work, you could do surgery on your preferences with jq. Quit Chrome, then:
cd /path/to/Chrome/Default
mv Preferences Preferences.bak
jq 'del(.devtools.file_system_paths)' <Preferences.bak >Preferences
来源:https://stackoverflow.com/questions/53705302/chrome-devtools-filesystem-workspace-problem