我正在尝试将Chrome设置为在Mac上的Eclipse中作为外部工具运行。我作为位置变量输入了Chrome的路径:
"/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的现有打开窗口。