【问题标题】:What is the exact command for launching Chrome with remote debugging in Terminal?在终端中使用远程调试启动 Chrome 的确切命令是什么?
【发布时间】:2021-01-10 10:04:34
【问题描述】:

我已经查找并尝试了几种通过终端远程调试启动 Chrome 的方法,但都没有奏效。我收到错误“没有这样的目录”或找不到命令。我试过了:

 chrome --remote-debugging-port=9222 

/Applications/Google\Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222

这些都是正确的吗?如果不是,正确的命令是什么?

【问题讨论】:

    标签: google-chrome remote-debugging


    【解决方案1】:

    需要做一个简单的更改,将 bash shebang 添加到 Chrome 调试器脚本中。

    #!/bin/bash
    /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222&
    

    【讨论】:

      猜你喜欢
      • 2019-01-04
      • 1970-01-01
      • 2014-03-31
      • 1970-01-01
      • 2021-12-16
      • 2011-01-25
      • 1970-01-01
      • 2015-05-20
      相关资源
      最近更新 更多