From: Chuck E. <chu...@gm...> - 2005-11-19 18:20:55
|
On 11/19/05, Christoph Zwerschke <ci...@on...> wrote: > The ReleaseNotes for 0.9 say "AutoReload no longer catches servlet > updates (since servlets can be reloaded without restarting the entire > server anyway)." (This was checked in by Ian in Revision 1956). > > Generally, I'd say this is a good idea, but I noticed there is also a > drawback: The exception traceback output does not use the updated > source. If lines have been added or deleted from the source, it shows a > wrong line as being erroneous. This makes debugging cumbersome. > > Anybody has an idea how this could be improved? Maybe simply reloading > the source before printing the traceback? Any suggestions for a patch? > > -- Christoph I develop from a debugging environment (WingIDE) so instead of looking at the WebKit-generated traceback for the servlet, my dev environment gives it to me (correctly). When I run in production, I don't use AutoReload. So this problem doesn't affect me. I do remember experiencing it back when I didn't develop out of an IDE. My impression was that it was a bug in Python since the servlet's module *is* getting reloaded. Maybe if you can recreate the issue in a small standalone example, you can ask comp.lang.python for help. -Chuck |