当使用Pydev插件选择运行或调试时,如何配置Eclipse启动浏览器 [英] How do I configure Eclipse to launch a browser when Run or Debug is selected using Pydev plugin
本文介绍了当使用Pydev插件选择运行或调试时,如何配置Eclipse启动浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
以下是设置外部启动配置的步骤启动IE:
- 选择运行 - > 外部工具 - > 外部工具配置...
- 在左侧窗格中,选择程序,然后选择新图标(窗格上方最左侧的图标)
- 在右侧窗格中,选择主要标签。
- 输入 launch_ie 在名称字段中。
- 在位置输入 $ {system_path:explorer.exe} :字段。
- 在参数字段中输入 http:/127.0.0.1 。
- 要运行外部配置,请选择运行。
如果要共享配置,您可以使用这些可选步骤:
- 选择常用标签
- 选择共享文件选项在另存为部分。
- 选择保存配置的位置(将其保存到另一个空项目可能是个好主意,因为您可以导入重新运行配置您有几个选择:
- 从菜单栏外部工具图标http://tbn2.google.com/images?q=tbn:pQV646K7J7xb4M:http://help.eclipse .org / ganymede / topic / org.eclipse.cdt.doc.user / images / icon_ext_tools.png ,然后点击 launch_ie
- 选择运行 - > 外部工具 - > 启动即
- 点击Alt + R,E,1(假设launch_ie一世是列表中的第一个项目,否则选择适当的数字)
I'm learning Python and Django using the Eclipse Pydev plugin. I want the internal or external browser to launch or refresh with the URL http:/127.0.0.1 when I press Run or Debug. I've seen it done with the PHP plugins but not Pydev.
解决方案Here are the steps to set up an external launch configuration to launch IE:
- Select Run->External Tools->External Tools Configurations...
- In the left hand pane, select Program then the new icon (left-most icon above the pane).
- In the right hand pane, select the Main tab.
- Enter launch_ie in the Name: field.
- Enter ${system_path:explorer.exe} in the Location: field.
- Enter http:/127.0.0.1 in the Arguments field.
- To run the external configuration, select Run.
If you want to share the configuration you can use these optional steps:
- Select the Common tab
- Select the Shared file: option in the Save As section.
- Select a location to save the configuration (saving it to an otherwise empty project might be a good idea, as you can import that to another workspace)
To rerun the configuration you have a few choices:
- Select the External Tools icon from the menu bar external tools icon http://tbn2.google.com/images?q=tbn:pQV646K7J7xb4M:http://help.eclipse.org/ganymede/topic/org.eclipse.cdt.doc.user/images/icon_ext_tools.png then click launch_ie
- Select Run->External Tools->launch ie
- Hit Alt+R, E, 1 (assuming launch_ie is the first item in the list, otherwise pick the appropriate number)
这篇关于当使用Pydev插件选择运行或调试时,如何配置Eclipse启动浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文