thecocce / pyscripter

Automatically exported from code.google.com/p/pyscripter
0 stars 0 forks source link

Debug for Google App Engine #238

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download Google App Engine  http://code.google.com/appengine/
2. Download, install Rpyc and properly configure project and remote engine
3. Try to Debug

What is the expected output? What do you see instead?

The server hang.

What version of the product are you using? On what operating system?

Pyscripter 1.9.9.2 on vista, App Engine Preview

Please provide any additional information below.

I attach the entire project, the only thing you need to reproduce the 
enviroment is the google app engine in your path. To start the 
dev_appserver.py I used a project with ad hoc configuration. 

Google app engine is a new framework to develop application that can run 
on google server, it' hot ;-), can you supply a guide to use pyscipter to 
debug in this enviroment ?

PS: your editor rocks!

Original issue reported on code.google.com by enri...@gmail.com on 15 Jul 2008 at 4:28

Attachments:

GoogleCodeExporter commented 9 years ago
I can't figure out if it's really slow, or hung.  Google's code tries to reload 
all 
modules (except encodings), so I extended it to leave Rpyc alone too and that 
seems 
to help.  At one point I had to tell it to leave bdb alone too, otherwise it 
would 
crash.

Original comment by norm...@gmail.com on 13 Dec 2008 at 2:47

GoogleCodeExporter commented 9 years ago
I get the same experience as Enrico, using Windows XP, with PyScripter 1.9.9.2.

I can run the Hello World example while the PyScripter run with 
dev_appserver.py.

When PyScripter is closed (in effect killing the run), the Hello World server 
is no
longer available.

The above is true with the Internal Python Engine.  I'll try it with the Remote 
Engine.

The run produces:
*** Remote Python engine is active ***
>>> 
Command Line : -d helloworld
INFO     2009-01-25 12:07:50,765 appengine_rpc.py] Server: appengine.google.com
WARNING  2009-01-25 12:07:50,780 datastore_file_stub.py] Could not read 
datastore
data from c:\docume~1\cjw\locals~1\temp\dev_appserver.datastore
WARNING  2009-01-25 12:07:50,780 datastore_file_stub.py] Could not read 
datastore
data from c:\docume~1\cjw\locals~1\temp\dev_appserver.datastore.history
WARNING  2009-01-25 12:07:50,780 dev_appserver.py] Could not initialize images 
API;
you are likely missing the Python "PIL" module. ImportError: No module named PIL
INFO     2009-01-25 12:07:50,796 dev_appserver_main.py] Running application
helloworld on port 8080: http://localhost:8080
DEBUG    2009-01-25 12:08:59,203 dev_appserver.py] Matched "/" to CGI 
dispatcher with
path helloworld.py

localhost:8080 on Firefox gives no result for about 30 seconds and then pythonw 
takes
50% of the cpu time - still no response to Firefox  (Dual core CPU)

I'll look into the PIL problem.

PyScripter must be closed to terminate the run.

Colin W.

Original comment by cjwillia...@gmail.com on 25 Jan 2009 at 5:20

GoogleCodeExporter commented 9 years ago
I can verify that this is indeed a problem with PyScripter.

There is one way to work around the issue though, that is by placing a break 
point at 
the dev_appserver.py. But to get it working you need to input 
http://localhost:8080 a 
few times. And then your output will show on your web browser. You still can't 
step 
into your code to debug, as explained in here 
(http://stackoverflow.com/questions/789558/how-to-debug-google-app-engine-script
s-with-
pyscripter) and as what I have experienced. 

Original comment by soonhui.ngu on 5 Jun 2009 at 8:27

GoogleCodeExporter commented 9 years ago

Original comment by pyscripter on 10 Dec 2010 at 11:15