Debugger Client API: Difference between revisions

Line 339: Line 339:
     // 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 357: Line 357:
{
{
   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") {
Confirmed users
231

edits