本文介绍了如何使用PyScripter调试Google App Engine脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

情况如下:我已下载Google App Engine SDK。我写了我的helloworld应用程序,在我的电脑上本地运行。我必须使用PyScripter作为IDE。我不能使用Eclipse,这不是我的问题的有效解决方案。

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.

在PyScripter中,我设置了一个运行配置,使服务器的一个实例本地运行(以运行模式或调试模式运行) ,并且可以通过访问localhost的webbrowser访问该应用程序。

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?

(注意:我正在使用PyScripter中的远程python引擎运行本地服务器)

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

推荐答案

我认为这是一个。我在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.

这篇关于如何使用PyScripter调试Google App Engine脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-20 12:21