<div dir="ltr">I'm using IronPython 2.75 embedded in a C++/C# application. If the script we are executing has a syntax error I want to see a traceback that contains the line number of the error. This only seems to work if I specify the "Debug" engine option. Is this to be expected? According to my reading, the Debug option turns off garbage collection and I wouldn't Debug turned on for a release build. Is there a solution for this?<div><br></div><div>Instead of this:</div><div><br></div><div>global name 'foobar' is not defined IronPython.Runtime.UnboundNameException: global name 'foobar' is not defined<br></div><div><br></div><div>I always want to see this:</div><div><br></div><div><div>global name 'foobar' is not defined IronPython.Runtime.UnboundNameException: global name 'foobar' is not defined at IronPython.Runtime.Operations.PythonOps.GetVariable(CodeContext context, String name, Boolean isGlobal, Boolean lightThrow) at IronPython.Runtime.Operations.PythonOps.GetGlobal(CodeContext context, String name) at <unnamed>$4.InitScript$129(PythonFunction $function) in C:\vc\scripts\FOOBAR.py:line 2965</div></div><div><br></div><div>Thanks!</div><div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><p style="font-size:12.8000001907349px"><b style="font-size:12.8000001907349px"><span style="font-size:10pt;line-height:15.3333320617676px;font-family:'Century Gothic',sans-serif;background-image:initial;background-repeat:initial">Jake Colman<br></span></b><span style="font-family:'Century Gothic',sans-serif;font-size:10pt;line-height:15.3333320617676px">Director, Software Development<br></span><span style="font-family:'Century Gothic',sans-serif;font-size:10pt;line-height:15.3333320617676px">Office: 609.235.1010<br></span><span style="font-family:'Century Gothic',sans-serif;font-size:10pt;line-height:15.3333320617676px">Direct: 609.235.0792<br></span><span style="font-family:'Century Gothic',sans-serif;font-size:10pt;line-height:15.3333320617676px">Email:</span><span style="font-family:'Century Gothic',sans-serif;font-size:10pt;line-height:15.3333320617676px"> </span><a href="mailto:jcolman@billtrust.com" style="font-family:'Century Gothic',sans-serif;font-size:10pt;line-height:15.3333320617676px" target="_blank">jcolman@billtrust.com</a><br><a href="http://www.billtrust.com/" style="font-family:'Century Gothic',sans-serif;font-size:10pt;line-height:15.3333320617676px" target="_blank">www.billtrust.com</a></p><p style="font-size:12.8000001907349px"><span style="font-size:10pt;line-height:15.3333320617676px;font-family:'Century Gothic',sans-serif;background-image:initial;background-repeat:initial"><img src="http://mktg.billtrust.com/rs/301-ZGZ-364/images/BT+Logo+Web+v1.png"></span></p></div></div></div></div></div></div></div>
</div></div>