[wingide-users] Debugging cgi script on local machine
peter at monicol.co.uk
Tue Oct 25 10:02:52 EDT 2005
Yes, that could very likely have been the base cause as I orignally had not
problem debiugging CGI scripts (the script that did not debug most recently
was responding to a 'multipart/form-data' form). I got the debugger working
by hacking at the setup but I don't really have any idea why. In particular
the Help is not entirely explicit on the relationship between the A)
kWingHostPort = 'localhost:50005'
kAttachPort = '50015'
and B) the set up one accesses through the Edit/Preferences menu in
particular 'Server Port' and 'Common Attach Hosts'.
Indeed I don't really know whether the k-variables are interdependent or
not. On problem is that when all the clients and hosts are on a single
machine what is going on can become a bit obscure (at least to me).
> -----Original Message-----
> From: Wingware Support [mailto:support at wingware.com]
> Sent: 24 October 2005 15:27
> To: Peter Mott
> Cc: wingide-users at wingware.com
> Subject: Re: [wingide-users] Debugging cgi script on local machine
> On Sat, 22 Oct 2005, Peter Mott wrote:
> > I'm on Windows XP SP2 running Apache on my local machine. I have Windows
> > Firewall installed and no doubt lots of other security things that I
> > nothing about! As far as I can I have ruled out that class of problems.
> My guess is you're loading a page with multiple bits so there are
> many quick requests to your server, and some of them are running
> w/o debug because Wing doesn't reset back to listening for debug
> connections quickly enough. It may help to build in some sort of
> short delay when os.environ.has_key('WINGDB_ACTIVE').
> This should go away as a problem at some point in the future
> 'cause we want Wing to be able to do multiple debug sessions
> simultaneously. For now, you're stuck working around it.
> I should note that running multiple threads simultaneously will
> result in a seemingly similar problem -- only the first thread
> will be debugged.
> If that doesn't help, please let me know.
> Stephan Deibel
> Wing IDE for Python
> Advancing Software Development
More information about the wingide-users