python - How to Debug GAE using Komodo IDE -
a few years ago debug gae using komodo ide when using gae by:
- from within komodo ide, select "debug | go"
- for [script] enter c:\progra~2\google\google_appengine\dev_appserver.py
- for [directory] enter c:\users\me\myproject
- for [script arguments] enter app (name of myproject subdir holding project)
- check "debug in separate console"
- click ok
but, new dev setup (win 8.1, komodo 8.5.3, app engine 1.9.2) separate command window comes up, hangs no output. when open command prompt manually, go directory named above, , type script command app argument, things run. if via run command in komodo, works.
but can't work in debug mode. hope it's simple; i'm little rusty after several years doing other things.
in fact, here's old link activestate blog appears said above. can't work.
the folks on @ komodo helped me resolve this.
basically,
- ensure edit | preferences | debugger | connection has port set 9000
- add new command in toolbox
- command: c:\python27\python "c:\program files (x86)\google\google_appengine\dev_appserver.py" --python_startup_script c:\komodo_debug.py c:\myfiles\app
- start in: c:\myfiles
- run in: new console
where komodo_debug.py contains
import sys sys.path.append("c:\program files (x86)\activestate komodo ide 8\lib\support\dbgp\pythonlib") # path komodo dbgp library dbgp import client client.brk()
Comments
Post a Comment