In theory this should work, bc the text pickling protocol was designed to be backward compatible across all Python versions. I ran into a major problem, however, bc the pickle module does not seem to be included in the omniORB python library. The pickle module was added to Python very early, even before Python 1.5. Also, I find it strange that pickle is not there, but marshal is.. Can anyone confirm/deny/explain this?<br>
<br><div class="gmail_quote">On Tue, Jun 30, 2009 at 11:40 AM, Tim Black <span dir="ltr"><<a href="mailto:timblack0@gmail.com">timblack0@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Has anyone written and tested a back-end that simply serializes the AST into a file? <br><br>I am on Windows, and I want to be able to debug my python back-ends using eclipse or some other debugger. Point is, I need to be in control of starting the python process I want to debug. On windows, omniidl.exe starts the python process that invokes my back-end, so I cannot debug. What I want to do is sever my code-generation back-end from the omniidl.exe process by visiting the AST using a single PickleVisitor which just pickles the idl syntax tree and writes it to file. Then I just run (and debug!) a new python script that reads the file, unpickles the AST, and passes it to my code-generation back-end.<br>
<br>Anyone already done this? See any problems with this plan?<br><br>Thanks,<br><font color="#888888">Tim<br>
</font></blockquote></div><br>