Archaeopteryx Software, Inc.
Take Flight!Search

Wing IDE
About Us
Open Source

 Advanced Search

[wingide-users] Ignore Breakpoint

Wing IDE Support support at
Fri, 25 Apr 2003 17:34:02 -0400 (EDT)

Have you tried just plain old 'import wingdbstub' at the top of the
script?  This will work fine even if debugging is already running,
and it starts debugging as a side effect:

#!/usr/bin/env python

import wingdbstub 
print "Content-type: text/html\n"
print "<HTML>\n<Head>\n<Title>",tttr, "</Title></Head><Body>\n\n" #exception $
print "<BR>MM"
print "</body></html>"

I believe there is a problem with the debug API which might be causing
this problem but you don't need it anyway.

If that doesn't help, try Clear All Breakpoints and resetting the 
breakpoint again.  If it's able to show the source after exception,
then it seems to be matching up filenames correctly so it seems 
likely it's something to do with your use of the API.

To diagnose further, try turning on debug output from the debug
process by setting kSilent=0 in wingdbstub.  You will probably need to 
look in your web server error log to see the result and can send it to us
for interpretation.

Hope that helps.

Stephan Deibel

Wing IDE for Python
Archaeopteryx Software, Inc
Take Flight!

On Fri, 25 Apr 2003, max.zhang wrote:

> I use wingide to remote debug the CGI code. Connection is Ok.
> Wingide can load source code and locate the line which exception
>  occurs, but breakpoint was always ignored. I list soure code.
> #!/usr/bin/env python 
> try:
>      wingdbstub.debugger.StopDebug()
> except:
>      import wingdbstub
> if wingdbstub.debugger != None: 
>     wingdbstub.debugger.StartDebug() 
> print "Content-type: text/html\n"
> print "<HTML>\n<Head>\n<Title>",tttr, "</Title></Head><Body>\n\n" #exception here
> print "<BR>MM"
> print "</body></html>"
> I am out of idea. Someone can help me?
> Max

Run by Mailman v 2.0.8

Copyright (c) 2000-2002, Archaeopteryx Software, Inc.
Legal Statements