[ZCM] [ZC] 1075/ 3 Comment "Debugger-friendly PythonScript"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Mon Oct 6 14:57:20 EDT 2003
Issue #1075 Update (Comment) "Debugger-friendly PythonScript"
Status Pending, Zope/bug+solution medium
To followup, visit:
http://collector.zope.org/Zope/1075
==============================================================
= Comment - Entry #3 by sdeibel on Oct 6, 2003 2:57 pm
Please reject this item. It's fatally flawed in ways I didn't notice before posting it. Sorry about that!
________________________________________
= Comment - Entry #2 by sdeibel on Oct 6, 2003 2:36 pm
Ugh, I have a hard coded path in this patch... give me a bit and I'll fix that.
________________________________________
= Request - Entry #1 by sdeibel on Oct 6, 2003 2:30 pm
Uploaded: "zope-script-debug-support.tar"
- http://collector.zope.org/Zope/1075/zope-script-debug-support.tar/view
Zope sets co_filename in code objects created for scripts to the string "Script (Python)", which doesn't seem to have much benefit and has the result of preventing Python debuggers from being able to stop or do other useful work in those code objects. The attached package contains a patch for Zope 2.6.2 and CMF 1.4.1 that corrects the problem for FSPythonScript type scripts by setting the co_filename to the correct value. Can this be accepted in some form so users of tools like Wing IDE can debug their scripts? I'm not sure I've covered as many cases as possible in this patch (e.g., are there file system based scripts in Zope w/o CMF??), but it's a start.
==============================================================
More information about the Zope-Collector-Monitor
mailing list