[IronPython] How to get stack traces from runtime exception with using generators.

KATO Kanryu k.kanryu at gmail.com
Fri Aug 21 05:09:15 CEST 2009

2009/8/21 Dino Viehland <dinov at microsoft.com>:
> Is there a reason you can't just call FormatException for both cases?

OK. I rewrote to the following:

| catch(Exception ex)
| {
|     var pythonContext =
HostingHelpers.GetLanguageContext(pythonEngine) as PythonContext;
|     Igs.Trace.Error(pythonContext.FormatException(ex));
| }

But I havn't get stack traces upper the generator yet :(

More information about the Ironpython-users mailing list