[wingide-users] cant debug file that imports socket module

Wingware Support support at wingware.com
Wed Oct 31 13:18:23 MDT 2007


Sebastian Fey wrote:
> import socket #just this line
> 
> when pressing debug, this is what happens:
> 
> AttributeError: 'module' object has no attribute '__all__'

This occurs when the report exceptions preference is set to "always 
immediately".  In this mode, Wing always stops immediately when an 
exception is raised regardless of whether the exception is handled. 
When socket is imported, an exception is thrown and then immediately 
handled in os.py (in Python 2.5.1 at least).  This is normal and Wing is 
doing stopping because of the "always immediately" preference setting.

You may what to use the "when printed" setting which is the default 
setting.  In this mode, Wing will only report exceptions that are not 
handled.

Cheers,

John


More information about the wingide-users mailing list