Debugger Client API: Difference between revisions

Line 161: Line 161:
     // Add variables for every argument.
     // Add variables for every argument.
     let objClient = client.activeThread.pauseGrip(aFrame.callee);
     let objClient = client.activeThread.pauseGrip(aFrame.callee);
     objClient.nameAndParameters(function(aResponse) {
     objClient.getSignature(function(aResponse) {
       for (let i = 0; i < aResponse.parameters.length; i++) {
       for (let i = 0; i < aResponse.parameters.length; i++) {
         let name = aResponse.parameters[i];
         let name = aResponse.parameters[i];
Line 178: Line 178:
{
{
   let thisClient = client.activeThread.pauseGrip(aObject);
   let thisClient = client.activeThread.pauseGrip(aObject);
   thisClient.prototypeAndProperties(function(aResponse) {
   thisClient.getPrototypeAndProperties(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 != "null") {
Line 189: Line 189:
   });
   });
}
}
</pre>  
</pre>
 
= Example application<br>  =
= Example application<br>  =


Confirmed users
231

edits