Debugger Client API: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 189: Line 189:
}
}
</pre>  
</pre>  
= Example application<br> =
= Example application<br> =


The source code for a complete application program can be seen below:<br>  
The source code for a complete application program can be seen below:<br>  
Line 355: Line 355:
   thisClient.prototypeAndProperties(function(aResponse) {
   thisClient.prototypeAndProperties(function(aResponse) {
     // Get prototype as a protocol-specified grip.
     // Get prototype as a protocol-specified grip.
     if (aResponse.prototype.type != "null") {
     if (aResponse.prototype.type&nbsp;!= "null") {
       dump("__proto__: " + aResponse.prototype.toSource() + "\n");
       dump("__proto__: " + aResponse.prototype.toSource() + "\n");
     }
     }
Line 379: Line 379:


</pre>  
</pre>  
You can try out this program using the Scratchpad.
You can try out this program using the [https://developer.mozilla.org/en/Tools/Scratchpad Scratchpad]. Just remember to set Browser as your Environment.<br>
Confirmed users
231

edits