function logRecord(record, indent) {
    indent += '  ';
    console.log(indent + record.type);
    if (record.children) {
      for (var n = 0; n < record.children.length; n++) {
        logRecord(record.children[n], indent);
      }
    }
  }
Handles incoming debugger events.
@param {string} method Remote debugger method name.
@param {!Object} params Parameters.
@private