Don't know  _ i don't use visual studio nor know anything about its 
capability re debugging python.  You should also look at the new 
pre-release SDK that supposedly fixes debugging for normal python debug 
environments,

T

On Tuesday, July 30, 2013 8:04:33 PM UTC+8, Cristian Perez wrote:
>
> Any way of doing this but for Visual Studio? The debugger doesn't work 
> with the new dev server...
>
>
>
> El lunes, 25 de marzo de 2013 11:30:05 UTC+1, timh escribió:
>>
>> Hi
>>
>> Here is a quick note to get people started with an IDE based interactive 
>> debugger with the new dev server
>>
>> You have to fix some code in the Boa Constructor remote debugger, but it 
>> does work ;-)
>>
>> 1. Get boa constructor.  I am running boa-constructor as installed with 
>> apt on xubuntu 12.10 alternately you can get a more up to date fork of boa 
>> here 
>> https://bitbucket.org/cwt/boa-constructor/overview  - you will need 
>> wxPython 
>>
>> 2. If you use the cwt fork you need to copy xmlrpclib.py from the 
>> python2.7 to <path to cwt boa>ExternalLibs  the xmlrpclib already there is 
>> very old
>> 3. Change the __init__ method of <path to boa>/Debugger/RemoteClient.py 
>>  to have the following line first
>>   xmlrpclib.Transport.__init__(self)  
>>
>> 4.  create a debug.py file in your project
>>
>> import sys
>> sys.path.append("<path to boa>")
>>
>> #sys.path.append("/usr/share/boa-constructor/")
>> from Debugger.RemoteServer import start
>> start("username","password")
>>
>>
>> 5.  Start the dev server (you need the patched one mentioned by Brian 
>> Quinlen in this posting  
>> https://groups.google.com/d/msg/google-appengine/ZHHkwr3ok8c/brrsUqwgp4gJ   
>> dev server is here  
>> https://code.google.com/p/appengine-devappserver2-experiment/downloads/detail?name=devappserver2-v0.8.zip&can=2&q=#makechanges
>>
>> 6. Start this dev server with the --python_startup_script= 
>> <somepath>/debug.py argument   - path should be where ever the debug.py is 
>> also you need to start it with --max_server_instances=1 
>>
>> 7. in Boa Constructor under the tools menu select "attach to the remote 
>> debugger" -its the first option, do this before you try anything with the 
>> dev server,
>>
>> 8. Now set a breakpoint etc in the code editor.
>>
>> 9 Hit the server with a web request and see the debugger stop and code 
>> highlighed in the editor.
>>
>> If you don't follow the order - connect to server before running a web 
>> request things won't work.
>> It obviously needs lots of work to ensure more reliable startup, but once 
>> running works well, when stopped you can also open up the debuggers 
>> interactive shell.
>>
>> Hope this helps someone
>>
>> Cheers
>>
>> Tim
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to