Change 20070403-ptw-s by [EMAIL PROTECTED] on 2007-04-03 17:02:03 EDT
    in /Users/ptw/OpenLaszlo/legals-1
    for http://svn.openlaszlo.org/openlaszlo/branches/legals

Summary: Hook Debug.log to Firebug

Bugs Fixed:
LPP-2762 'Debugger in DHTML no longer warns about undefined variable references'

Technical Reviewer: max (pending)
QA Reviewer: henry (pending)
Doc Reviewer: jsundman (pending)

Documentation:
If you have Firebug installed in your browser and you set
_dbg_log_all__writes = true;
Then all debugging output will be logged to the Firebug console.

This can be useful for debugging errors in the debugger.

Details:
    LzMessage:  Fix constructor so that it does not store random
    objects in the message slot (e.g., $reportSourceWarning passes the
    error object as an initial value).  This fixes LPP-2762.

    To debug LPP-2762:

    Add LzMessage.toArray and LzSourceMessage.toArray which convert
    message objects into arrays of strings and objects for passing to
    console log (so objects are inspectable).

kernel.js, LzRuntime: Implement Debug.log by hooking it to Firebug (if it exists).

Tests:
    IWFM, Test case from bug passes

Files:
M      WEB-INF/lps/lfc/debugger/LzMessage.lzs
M      WEB-INF/lps/lfc/debugger/platform/dhtml/kernel.js
M      WEB-INF/lps/lfc/compiler/LzRuntime.lzs


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070403-ptw- s.tar

Reply via email to