[wingide-users] Keeping debugger out of "other" files

Luc Bourhis luc_j_bourhis at mac.com
Wed Aug 17 04:16:42 EDT 2005

On 15 Aug 2005, at 16:21, Wingware Support wrote:

> On Mon, 15 Aug 2005, Michael Hipp wrote:
>> Luc Bourhis wrote:
>>> [...]

>>> As far as I know Python does not provide an easy way to throw a
>>> exception from higher in the stack trace than the line of code  
>>> where the
>>> problem has occurred, in the manner the Carp module does it in Perl,
>>> which is a pity since pre-condition violations are nearly always  
>>> better
>>> signalled in the calling code than in the callee for example.
>>> Since Python does not provide this feature, it would indeed be  
>>> nice if
>>> the debugger could do so. I would reckon two alternatives: clim the
>>> stack until (a) one has moved out of the faulty module and (b)  
>>> one has
>>> moved out of the faulty package.
>> To me, knowing nothing of the internals of Wing IDE, it would be a
>> fairly simple matter to climb upwards until it finds it is in a file
>> that is a part of the project.
> In fact Wing already does this internally to omit frames within our
> own debugger modules, which are usually present.

That I never noticed it is a tribute to your implementation of that  

> I think the
> suggestion is a good mode to implement, although it will work better
> and seem more robust after we have projects that auto-update the files
> within directories.  Otherwise a new module would arbitrarily be
> omitted, and that could get confusing.

It is another reason I would prefer to explicitly spell out which  
modules or packages to skip in the frames stack.

> Also, I'm not sure we should
> trim off frames, but just start by default in your own code.
> Otherwise, it would be confusing when you do in fact uncover a bug in
> a library, or need access to the library code in order to understand
> and fix the bug in your code.

I concur

> - Stephan
> _________________________________________________
> Wing IDE users list
> http://wingware.com/lists/wingide

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2371 bytes
Desc: not available
Url : /pipermail/wingide-users/attachments/20050817/8c099f17/smime.bin

More information about the wingide-users mailing list