如何使用 PyScripter 调试 Google App Engine 脚本

发布于 2024-07-18 04:35:48 字数 410 浏览 4 评论 0原文

情况如下:我已经下载了Google App Engine SDK。 我已经编写了在我的计算机本地运行的“helloworld”应用程序。 我必须使用 PyScripter 作为 IDE。 我无法使用 Eclipse,这不是解决我的问题的有效方法。

在 PyScripter 中,我设置了“运行配置”,以便服务器实例在本地运行(以“运行”模式或“调试”模式),并且可以通过访问“localhost”的网络浏览器访问应用程序。

现在的问题是,断点似乎被忽略了。 我设置了一个断点,重新加载浏览器,然后出现响应,而调试器没有在我自己的函数中设置的断点处停止。 我根本无法调试。

问题是,如何使用我描述的配置调试应用程序?

(注意:我已经在 PyScripter 中使用“远程”python 引擎来运行本地服务器)

The situation is as follows: I have downloaded the Google App Engine SDK. I have written my "helloworld" app that runs locally in my computer. I have to use PyScripter as IDE. I can't use Eclipse, that would not be a valid solution to my problem.

In PyScripter, I have set a "Run Configuration", so that an instance of the server runs locally (either in "run" mode or in "debug" mode), and can access the app via a webbrowser accessing "localhost".

Now, the problem is, breakpoints seem to be ignored. I set a breakpoint, reload the browser, and the response appears without the debugger stopping at the breakpoint I had set in my own function. I cannot debug at all.

The question is, how can I debug the app using the configuration I have described?

(Note: I am already using the "remote" python engine within PyScripter for running the local server)

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

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

发布评论

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

评论(1

埖埖迣鎅 2024-07-25 04:35:48

我认为这是 PyScripter 的错误。 我在1.9.9.7版本测试过,同样的问题依然存在。

I think this is a PyScripter's bug. I tested in version 1.9.9.7 and the same problem is still there.

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