In WEB-INF/lps/lfc/debugger/LzRemote.as

Debug.startupRemote() is the hook to start the remote debugger.

The code that calls that is in lps/components/debugger/debugger/lzx:

  <method name="loaded" >

if (typeof(global.remotedebug) != 'undefined') {
           // This case mismatch here is intentional: "remotedebug" is the query arg,
           // "Debug.remoteDebug" is the attribute on the Debugger window.
            this.remoteDebug = true;
            this.setVisible( false );
            // Open the remote debugger socket
            this.startupRemote();

            this.write = function (objects) {
                var n = arguments.length
                // Pass each value individually so they can be
                // 'presented' as objects if applicable
                for (var i = 0; i < n; i++) {
                    var v = arguments[i];
                    var s = ((i == (n-1)) ? '\n' : ' ');
                    this.sockWriteLog(v);
                }
            }
            // Write out any queued messages from app startup.
            for (var i = 0; i < this.saved_msgs.length; i++) {
                var msg = this.saved_msgs[i];
                if (msg instanceof LzSourceMessage) {
                    this.sockWriteWarning( msg.file, msg.line, msg.message.toString());
                } else {
                    this.sockWriteLog(String(msg));
                }
            }
        }




There's also this other remote debugger I had sort of running in debugger/LzFlashRemote.as, using the "LocalConnection" facility, which has the slight advantage as implemented of being able to do talk to the app without the app needing to be compiled with debugging enabled. I had a pane in the dev-console which is commented out that could be used to talk to it, which I could resurrect
if needed.






--
Henry Minsky
Software Architect
[EMAIL PROTECTED]

_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to