1

当我尝试在 sublime text 2 中运行 web inspect 时,会产生以下错误:

[619:1799:0524/104420:ERROR:process_singleton_mac.cc(103)] Unable to obtain profile lock.
[Finished in 0.1s with exit code 20]

以下是我的配置文件:

{
    "chrome_path": {
        "osx": "/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary",
        "windows": "C:\\Program Files\\Google\\Chrome\\chrome.exe",
        "linux": "/usr/bin/google-chrome"
    },
    "chrome_profile": "Default",
    "chrome_remote_port": "9222",
    "breakpoint_scope": "swi.breakpoint",
    "current_line_scope": "swi.current",
    "interactive_scope": "mcol_0088CCFF.settings",
    "stack_layout": {
        "cols": [0.0, 0.6, 1.0],
        "rows": [0.0, 0.7, 1.0],
        "cells": [[0, 0, 2, 1], [0, 1, 1, 2], [1, 1, 2, 2]]
    },
    "console_layout": {
        "cols": [0.0, 0.6, 1.0],
        "rows": [0.0, 0.7, 1.0],
        "cells": [[0, 0, 2, 1], [0, 1, 1, 2], [1, 1, 2, 2]]
    },
    "reload_on_start": true,
    "reload_on_save": true,
    "set_script_source": false,
    "open_stack_current_in_new_tab": false,
    "pause_on_exceptions": "uncaught",
    "breaks": {}
}

知道是什么导致了这个错误吗?

4

1 回答 1

0

遇到同样的错误,这发生在 Chrome 已经运行时。尝试关闭 Chrome,然后点击 Sublime Text 中的命令“使用远程调试端口 9222 启动 Google Chrome”Sublime Text 中的命令以使用 Web Inspector 启动 Chrome

于 2013-07-08T09:20:41.193 回答