Use Debug.showInternalProperties=true to see everything.

Also, if you want to trace a method without inserting Debug.write's  
and recompiling:

   Debug.trace(object, 'methodName')

will print out each time object.methodName is called.  E.g.,

lzx> bar = { f: function f (a) { return a + 1 }}
«Object#10| {}»
lzx> Debug.trace(bar, 'f')
lzx> bar.f(5)
TRACE: [209585.19] f.apply({}, [5])
TRACE: [209597.94] f -> 6
6
lzx>

Tracing displays the call (with arguments) and the return (with result).

You can monitor properties by using:

   Debug.monitor(object, 'propName')

Debug.untrace and Debug.unmonitor to turn them off.  E.g.,

lzx> foo = {a: 42}
«Object#59| {a: 42}»
lzx> Debug.monitor(foo, 'a')
true
lzx> foo.a = 7
MONITOR: [733626.06] unknown file#1/2: {a: 42}.a: 42 -> 7
7
lzx>

Monitoring shows the object and the old and new values.

I hope the doc-meister will find this examples useful fodder.

On 2006-05-19, at 17:27 EDT, Adam Wolff wrote:

> the debugger supresses identifiers that begin with __ by default.  
> this bit
> me earlier in the week :)
> A
>
> On May 19, Sarah Allen wrote:
>
>>
>> odd.  It works for me with red5 without removing those lines  
>> (connecting
>> to both "test" and "oflaDemo").  I added debug statements and I don't
>> see __resolve ever getting called.
>>
>> Sebastian Wagner wrote:
>>
>>> hi,
>>>
>>> From the repo-dir you have comment out / remove the following code
>>> lines from extension/rtmpconnection.lzx (from Line 54):
>>>
>>>        this._nc.__resolve = function(name) {
>>>             if (this.debug) {
>>>                 Debug.write("__resolve " , name, typeof(this 
>>> [name]));
>>>                 Debug.write("  arguments.callee.name
>>> <http://arguments.callee.name> " , arguments.callee.name
>>> <http://arguments.callee.name>);
>>>             }
>>>             if (typeof(this[name]) == "function") {
>>>                 this[name].apply( arguments );
>>>             }
>>>         };
>>>
>>> Then the files from the video-repo should work fine.
>>> I did quickly a example of the Red5-oflaDemo just for testing (see
>>> attached).
>>> and this works with my red5 installation:
>>> http://appserver.webbase-design.de/lps-latest/streaming/branch/ 
>>> test-red5oflaDemo.lzx
>>>
>>> regards
>>> sebastian
>>>
>>> 2006/5/19, J Crowley <[EMAIL PROTECTED]
>>> <mailto:[EMAIL PROTECTED]>>:
>>>
>>>     Hrm, if I'm interpreting this correctly, you're giving a  
>>> "localhost"
>>>     for a value that you're putting on a server.  The server  
>>> isn't going
>>>     to connect to your personal "localhost", it'll treat  
>>> "localhost" as
>>>     the server itself, since it's relative to the location of the
>>>     reference.  That is, if you make a file that links to, say,
>>>     "http://localhost/test.html";, and you upload it to server
>>>     www.foo.com <http://www.foo.com>,
>>>     it'll be linking to www.foo.com/test.html
>>>     <http://www.foo.com/test.html> and not to your computer.
>>>     In order to link it back to your own localhost--your own  
>>> computer--you
>>>     have to specify the IP address of your machine.
>>>
>>>     If I'm misinterpreting, I apologize.
>>>
>>>     -Josh
>>>
>>>
>>>     On 5/19/06, ??? <[EMAIL PROTECTED]
>>>     <mailto:[EMAIL PROTECTED]>> wrote:
>>>> Hi,all:
>>>>          I check all the .lzx file from the svn path
>>>> http://svn.openlaszlo.org/openlaszlo/branches/video/test/video/
>>>     and then I
>>>> change the test-rtmpconnection.lzx file "rtmp://localhost/test" to
>>>> "rtmp://localhost/oflaDemo" and then publish it to openlaszlo
>>>     server, but it
>>>> does not connect the red5 server in my localhost,why? The status
>>>     is always
>>>> connecting,and other test-*.lzx is the same problem,pls reply me
>>>     ,thks!
>>>> Best regards!!
>>>>
>>>>
>>>> _______________________________________________
>>>> Laszlo-dev mailing list
>>>> [email protected] <mailto:[email protected]>
>>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>>>>
>>>
>>>     _______________________________________________
>>>     Laszlo-dev mailing list
>>>     [email protected] <mailto:[email protected]>
>>>     http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>>>
>>>
>>>
>>>
>>> -- 
>>> Sebastian Wagner
>>> http://www.webbase-design.de
>>> http://www.laszlo-forum.de
>>> Bleichstraße 92
>>> 75173 Pforzheim
>>> Tel.: 0177-7341829
>>> Home: 07231-417456
>>> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>>>
>>> -------------------------------------------------------------------- 
>>> ----
>>>
>>> _______________________________________________
>>> Laszlo-dev mailing list
>>> [email protected]
>>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>>>
>>>
>>
>> _______________________________________________
>> Laszlo-dev mailing list
>> [email protected]
>> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
> _______________________________________________
> Laszlo-dev mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev


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

Reply via email to