Eclipse/PyDev/GAE:如何将命令行选项添加到我的运行方式->PyDev Google App Run

发布于 2024-12-18 19:59:41 字数 668 浏览 1 评论 0原文

我正在使用 Eclipse/PyDev 开发一个名为 GAEServer 的 Google App Engine 项目。我的常用操作之一是右键单击项目并选择 Debug As->1 PyDev: Google App Run。这为我的应用程序启动了调试会话。

我想更改调用此命令时执行的命令行参数(以重新定位 GAE 本地服务器查找其数据库的位置)。这需要我向执行的命令添加参数。

如果我从主菜单中选择:运行 -> 调试配置...,有一个名为 PyDev Google App Run 的可扩展项目,其中包含一个项目列表:

PyDev Google App Run
GAEServer GAEServer
GAEServer GAEServer (1)
GAEServer GAEServer (2)
 ...

目前我有 19 个项目,这有点令人惊讶。如果我选择第一个,则有一个选项卡,您似乎可以在其中添加参数 (x)= Arguments 但如果我编辑此选项并再次尝试调试,它不会调用 GAE附加选项,而是使用默认设置创建另一个 GAEServer GAEServer (n)

可能是我以某种奇怪的方式设置了我的项目,我不明白它应该如何工作或者我发现了一个错误。谁能帮我弄清楚是哪一个吗?

预先感谢

朱尔斯

I am using Eclipse/PyDev to develop a Google App Engine project called GAEServer. One of my common operations is to right click on the project and select Debug As->1 PyDev: Google App Run. Which kicks of a debug session for my application.

I would like to change the command line arguments executed when this command is invoked (to relocate where GAE local server looks for its database). This requires me to add arguments to the executed command.

If I select from the main menu: Run->Debug Configurations... there is an expandable item called PyDev Google App Run which contains a list of items:

PyDev Google App Run
GAEServer GAEServer
GAEServer GAEServer (1)
GAEServer GAEServer (2)
 ...

At the moment I have 19 of these which is a little surprising. If I select the first one then there is a tab where you appear to be able to add arguments (x)= Arguments but if I edit this and try to debug as again, it does not invoke GAE with the additional options, instead it creates another GAEServer GAEServer (n) with the default settings.

It may be that I have set up my project in some odd way, that I'm not understanding how this is supposed to work or that I have uncovered a bug. Can anyone help me figure out which?

Thanks in advance

Jules

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

少女的英雄梦 2024-12-25 19:59:41

运行实际上会创建一个新的运行配置...只需删除您拥有的一堆配置,运行一次并编辑该配置即可。

稍后(如果您遵循 http://pydev.org/manual_101_run.html 上的建议),您应该能够按 Ctrl+F11 重新运行上次启动(或从菜单中选择:运行 > 运行历史记录 > 以前的启动:可以通过 Alt+R、T、配置数量访问)。

The run as will really create a new run configuration... Just erase the bunch of configurations you have, run it once and edit that one.

Later ( if you followed the suggestion on http://pydev.org/manual_101_run.html ), you should be able to Ctrl+F11 to rerun the last launch done (or choose it from the menu: run > run history > previous launches: can be accessed through Alt+R, T, number of config).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文