On Jun 5, 2006, at 8:34 PM, Alex Tweedly wrote:

Got it - there are actually two temporary files - one in the directory where the cdxml file is (called CLASSTEXT.py) and another in the temp directory, and I was looking at the wrong one.

Actually, CLASSTEXT.py is for debugging purposes only. It is not actually run by Dabo. I left in the code to write it to disk so that when people were testing the designer, they could send me the file so that I could figure out what was wrong.

Suggestion: instead of calling it CLASSTEXT.py, called it appname_classtext.py - so the cdxml file is called myproject.cdxml, then the python file will be called myproject_classtext.py ; this would let me have multiple apps in the same directory without stomping over each others' files.

        See above.

Q: why not put this all in classtext.py ? What's the benefit of having a separate temp file ? Even if there's a benefit in having a separate file - why not make it be a user-chosen name, within the same directory. That way you don't lose it if you clear out your temp directory.

Classes are created in memory, and have no disk presence (outside of the cdxml file). The only reason to create the temp file for the code was so that people could step through the code to debug it. Putting dabo.trace() into the code when it was all in memory provided no way to see the actual code; you just got line numbers. So I created the hack that changes cdxml code into stub calls that call the extracted methods in the temp file. While this is far from perfect, at least it allows for some debugging. The eventual goal is to be able to debug from the Dabo IDE; I'm hoping that either the enhancements to integrating Winpdb that are being worked on the PyxIDEs project, or the Summer of Code project to improve the separation of the pdb debugger from its interface will allow me to get rid of this hack altogether. But for now, this is the compromise.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to