[Glass] Improved debugging of continuations from WAObjectLog
Mariano Martinez Peck via Glass
glass at lists.gemtalksystems.com
Tue Jun 2 16:12:58 PDT 2015
Hi guys,
I know we have tODE. Still, sometimes it's very useful to easily/quickly
debug an error. Using tODE means someone needs to have a Pharo image with
tODE client, tODE installed in the server, etc... Of course, this is very
much needed and worth for many developers. But sometimes, there are
advanced users that would like a quick debug of the stack. Also, there
might be a team where not all of them have the knowledge of GemStone...so
they update the code to GemStone, they try it, and find errors.
So...for the above reasons, I tried to improve a bit the debugging of
continuations from WAObjectLog. This is because I can render the component
from within my webapp. This might be enough for fixing quite some bugs, and
then let tODE/GemTools for the more complex bugs and for the more
experienced developers.
Anyway, from what I see, WAObjectLog prints a dead string of the stack. See
attached picture called "ObjectLogOld". So what I did now is to modify
WAObjectLog to add one more column to the table with a "debug" link. The
debug link will be present only for the object log entries that are
continuations and should be able to be debugged. See attached
"ObjectLogNewColumn".
Now, if I click in "debug" there, it opens a special subclass
of WAGemStoneWalkback which simply has a "Full Stack" button and then below
prints the stack. The printing of this stack is of course much better since
I can see the state of the variables and links to seaside inspectors and
friends (see file 'ObjectLogNewDebugInspectorOpened').
So yeah, it is a poor man debugger, but for easy bugs it may be useful for
a couple of users.
If you think there could be others interested in this, I can package it
(it's really little amount of code) and commit it
to 'Seaside-GemStone-Tools-Production-ObjectLog' but then I would like
someone to review it at least.
Cheers,
--
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20150602/2e8e196f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ObjectLogNewColumn.png
Type: image/png
Size: 136204 bytes
Desc: not available
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20150602/2e8e196f/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ObjectLogNewDebug.png
Type: image/png
Size: 123502 bytes
Desc: not available
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20150602/2e8e196f/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ObjectLogNewDebugInspectorOpened.png
Type: image/png
Size: 78445 bytes
Desc: not available
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20150602/2e8e196f/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ObjectLogOld.png
Type: image/png
Size: 238422 bytes
Desc: not available
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20150602/2e8e196f/attachment-0007.png>
More information about the Glass
mailing list