View Single Post
  #1 (permalink)  
Old 08-19-2005
ckohnert ckohnert is offline
Registered User
 
 
Join Date: Aug 2005
Posts: 9
Patch to print traceback of python exceptions

Since python exceptions can occur for so many reasons in a complex setup, it's near impossible to track them down without a traceback. This patch simply hooks into the Ice exception catching to do a quick print to stderr before doing things normally.

I didn't add a config option because I'm not sure what sort of policies there are for choosing them (nor the best way to hook into it via the API). Something like Ice.Trace.UnknownExceptions=1 would be great to have for languages that can do it relatively easily (java and python that I know of).

(Diff generated against IcePy-2.1.2)
Attached Files
File Type: txt patch.txt (763 Bytes, 314 views)
Reply With Quote