【问题标题】:Is it possible to run Chrome as an external tool on Eclipse 3.6 on Mac OS X?是否可以在 Mac OS X 上的 Eclipse 3.6 上将 Chrome 作为外部工具运行?
【发布时间】:2011-06-09 04:26:13
【问题描述】:

我正在尝试将 Chrome 设置为在 Mac 上的 Eclipse 中作为外部工具运行。我已将 Chrome 的路径作为 Location 变量输入:

"/Applications/Chrome.app/Contents/MacOS/Google\ Chrome"

我有一些参数要传递给 Chrome,但这并不是那么重要——我似乎根本无法从 Eclipse 作为外部工具开始。 “运行”按钮显示为灰色,保存后配置不会显示在外部工具运行菜单中。我做错了什么/错过了什么?

更新

尝试使用“打开”命令 ala Running external tools in Eclipse on Mac OS X 似乎只是切换到正在运行的 Chrome 实例,而不是使用我的命令行参数运行 chrome。

我试过定位:

/usr/bin/open

参数:

-a "/Applications/Chrome.app" --args "localhost"   

Chrome 不会打开 localhost - 相反,它只是切换到现有打开的窗口,其中包含 Chrome。

【问题讨论】:

  • 这是一道编程环境配置题。我希望配置 eclipse 的程序员会遇到这个问题,我怀疑系统配置专家(超级用户)要么知道答案,要么对这个问题感兴趣
  • 是错字,还是漏掉了前面的-a参数?
  • 文档说 -a,但没有它似乎也能正常工作。已更正。

标签: eclipse google-chrome


【解决方案1】:

这个类似的 SO 帖子对您有帮助吗?

Running external tools in Eclipse on Mac OS X

【讨论】:

  • 它让我更接近了,但还不够接近。不过,我最近的问题可能是 Chrome 实现问题
  • 你有没有让 Chrome 做你想做的事,例如从命令行?
  • 不完全是。充其量,它会在现有浏览器窗口的新选项卡中打开链接。有时它只会将焦点转移到浏览器,而不会打开链接。据我所知,这是 Chrome 所能做到的最好的。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2017-10-17
  • 2019-02-04
  • 1970-01-01
  • 1970-01-01
  • 2012-06-02
  • 1970-01-01
  • 2016-07-09
相关资源
最近更新 更多