[IronPython] Line numbers in snippets...

Alex Henderson alex at syzmk.com
Mon May 15 22:09:27 CEST 2006


We've been using IronPython as a scripting engine in one of our products
that's in development for a while now, works great :)

However when executing code which has syntax errors in it we can't seem to
get line numbers back from the exception, or find any compilation context we
can examine for a list of errors - which makes it difficult to diagnose
problems obviously.

I figure this is probably a limitation of the execute method, unless I've
missed something... is there a different approach we could use where we will
get line numbers when an error occurs?

Chez,

 - Alex




More information about the Ironpython-users mailing list