[Idle-dev] [ idlefork-Patches-844675 ] Enable pdb.pm() after unhandled exception

SourceForge.net noreply at sourceforge.net
Sun Nov 23 22:09:00 EST 2003


Patches item #844675, was opened at 2003-11-18 15:35
Message generated for change (Comment added) made by kbk
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309579&aid=844675&group_id=9579

Category: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Noam Raphael (noamr)
>Assigned to: Kurt B. Kaiser (kbk)
Summary: Enable pdb.pm() after unhandled exception

Initial Comment:
Currently, pdb.pm() doesn't work after an exception was
raised, since it is actually handled.

The following line should be added to run.py after the
line            
self.usr_exc_info = sys.exc_info() (line 248):

sys.last_type, sys.last_value, sys.last_traceback =
self.usr_exc_info

This emulated the normal behaviour of an unhandled
exception, and gives pdb.pm() the information it needs
in order to work.



----------------------------------------------------------------------

>Comment By: Kurt B. Kaiser (kbk)
Date: 2003-11-23 22:09

Message:
Logged In: YES 
user_id=149084

Python IDLE run.py 1.26
   release23-maint 1.25.8.1
IDLEfork run.py 1.24

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=309579&aid=844675&group_id=9579



More information about the IDLE-dev mailing list