当使用Pydev插件选择运行或调试时,如何配置Eclipse启动浏览器 [英] How do I configure Eclipse to launch a browser when Run or Debug is selected using Pydev plugin

查看:179
本文介绍了当使用Pydev插件选择运行或调试时,如何配置Eclipse启动浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Eclipse Pydev插件来学习Python和Django。当我按运行或调试时,我希望内部或外部浏览器启动或刷新URL http:/127.0.0.1。我已经看到它完成了PHP插件,但不是Pydev。

解决方案

以下是设置外部启动配置的步骤启动IE:


  1. 选择运行 - > 外部工具 - > 外部工具配置...

  2. 在左侧窗格中,选择程序,然后选择新图标(窗格上方最左侧的图标)

  3. 在右侧窗格中,选择主要标签。

  4. 输入 launch_ie 名称字段中。

  5. 位置输入 $ {system_path:explorer.exe} 字段。

  6. 参数字段中输入 http:/127.0.0.1

  7. 要运行外部配置,请选择运行

如果要共享配置,您可以使用这些可选步骤:


  1. 选择常用标签

  2. 选择共享文件选项在另存为部分。

  3. 选择保存配置的位置(将其保存到另一个空项目可能是个好主意,因为您可以导入重新运行配置您有几个选择:






    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

    2. 选择运行 - > 外部工具 - > 启动即

    3. 点击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:

    1. Select Run->External Tools->External Tools Configurations...
    2. In the left hand pane, select Program then the new icon (left-most icon above the pane).
    3. In the right hand pane, select the Main tab.
    4. Enter launch_ie in the Name: field.
    5. Enter ${system_path:explorer.exe} in the Location: field.
    6. Enter http:/127.0.0.1 in the Arguments field.
    7. To run the external configuration, select Run.

    If you want to share the configuration you can use these optional steps:

    1. Select the Common tab
    2. Select the Shared file: option in the Save As section.
    3. 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:

    1. 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
    2. Select Run->External Tools->launch ie
    3. Hit Alt+R, E, 1 (assuming launch_ie is the first item in the list, otherwise pick the appropriate number)

    这篇关于当使用Pydev插件选择运行或调试时,如何配置Eclipse启动浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆