I received a direct email inquiring about this, but it could be useful
info for more than one person. Here is what I do to use WingIDE on a
Webware web site:
* Use the MakeAppWorkDir util to make a local app work dir for my
project. (Located in Webware\bin.)
* Create a run-debug.py in the work directory with these contents:
import sys, Launch
Launch.main([sys.argv[0]] + ['DebugAppServer'] + sys.argv[1:])
* Add that file to the WingIDE project if you haven't already.
* Right-click and choose "Set As Main Debug File".
Now you can run from WingIDE, set break points, examine the stack, use
a Python prompt tied to any stack prompt, etc.
I think that's it, but I haven't set up a new project in awhile so if
you have any problems or questions speak up.
WingIDE also has a "Debug > Attach to Process..." command which could
be useful to debug a test or production server. I haven't used it yet
though so I don't have any instructions except to consult their docs
or their tech support (they've always responded to me).
-Chuck
|