Lines Matching refs:request
292 // Converts a text command to a JSON request.
303 // If the very first character is a { assume that a JSON request have been
304 // entered as a command. Converting that to a JSON request is trivial.
314 cmd_line = 'break'; // Not in debugger mode, break with a frame request.
529 this.type = 'request';
582 var request = this.createRequest(command);
583 request.arguments = {};
584 request.arguments.start = start_index;
585 request.arguments.count = lines_to_dump;
587 return request;
591 // Create a JSON request for the evaluation command.
600 // Build a dump request.
601 var request = this.createRequest('getobj');
602 request.arguments = {};
603 request.arguments.obj_id = obj_id;
604 return request.toJSONProtocol();
613 // Build a lookup request.
614 var request = this.createRequest('lookup');
615 request.arguments = {};
616 request.arguments.handles = [ lookup_handle ];
617 return request.toJSONProtocol();
619 // Build an evaluate request.
620 var request = this.createRequest('evaluate');
621 request.arguments = {};
622 request.arguments.expression = expression;
623 // Request a global evaluation if there is no current frame.
625 request.arguments.global = true;
627 return request.toJSONProtocol();
632 // Create a JSON request for the references/instances command.
634 // Build a references request.
637 var request = this.createRequest('references');
638 request.arguments = {};
639 request.arguments.type = type;
640 request.arguments.handle = parseInt(handle_match[1]);
641 return request.toJSONProtocol();
648 // Create a JSON request for the continue command.
650 var request = this.createRequest('continue');
651 return request.toJSONProtocol();
655 // Create a JSON request for the step command.
659 var request = this.createRequest('continue');
660 request.arguments = {};
685 request.arguments.stepcount = stepcount;
692 request.arguments.stepaction = 'in';
697 request.arguments.stepaction = 'min';
702 request.arguments.stepaction = 'next';
707 request.arguments.stepaction = 'out';
716 request.arguments.stepaction = type;
717 request.arguments.stepcount = stepcount;
722 request.arguments.stepaction = type;
725 return request.toJSONProtocol();
729 // Create a JSON request for the backtrace command.
731 // Build a backtrace request from the text command.
732 var request = this.createRequest('backtrace');
735 request.arguments = {};
736 request.arguments.fromFrame = 0;
737 request.arguments.toFrame = 10;
744 request.arguments.fromFrame = 0;
745 request.arguments.toFrame = frameCount;
748 request.arguments.fromFrame = 0;
749 request.arguments.toFrame = -frameCount;
750 request.arguments.bottom = true;
766 request.arguments.fromFrame = fromFrame;
767 request.arguments.toFrame = toFrame + 1;
772 return request.toJSONProtocol();
776 // Create a JSON request for the frame command.
778 // Build a frame request from the text command.
779 var request = this.createRequest('frame');
782 request.arguments = {};
783 request.arguments.number = args[0];
785 return request.toJSONProtocol();
789 // Create a JSON request for the scopes command.
791 // Build a scopes request from the text command.
792 var request = this.createRequest('scopes');
793 return request.toJSONProtocol();
797 // Create a JSON request for the scope command.
799 // Build a scope request from the text command.
800 var request = this.createRequest('scope');
803 request.arguments = {};
804 request.arguments.number = args[0];
806 return request.toJSONProtocol();
810 // Create a JSON request for the print command.
812 // Build an evaluate request from the text command.
820 // Create a JSON request for the dir command.
822 // Build an evaluate request from the text command.
830 // Create a JSON request for the references command.
832 // Build an evaluate request from the text command.
841 // Create a JSON request for the instances command.
843 // Build an evaluate request from the text command.
848 // Build a references request.
853 // Create a JSON request for the list command.
888 // Create a JSON request for the source command.
890 // Build a evaluate request from the text command.
891 var request = this.createRequest('source');
909 // Request source arround current source location.
910 request.arguments = {};
911 request.arguments.fromLine = from;
912 request.arguments.toLine = from + lines;
914 return request.toJSONProtocol();
918 // Create a JSON request for the scripts command.
920 // Build a evaluate request from the text command.
921 var request = this.createRequest('scripts');
931 request.arguments = {};
934 request.arguments.types = ScriptTypeFlag(Debug.ScriptType.Native);
938 request.arguments.types = ScriptTypeFlag(Debug.ScriptType.Extension);
942 request.arguments.types =
951 request.arguments.filter = args[0];
956 return request.toJSONProtocol();
960 // Create a JSON request for the break command.
962 // Build a evaluate request from the text command.
972 var request = this.createRequest('setbreakpoint');
1011 request.arguments = {};
1012 request.arguments.type = type;
1013 request.arguments.target = target;
1014 request.arguments.line = line;
1015 request.arguments.column = column;
1016 request.arguments.condition = condition;
1018 var request = this.createRequest('suspend');
1021 return request.toJSONProtocol();
1029 var request = this.createRequest('listbreakpoints');
1030 return request.toJSONProtocol();
1034 // Create a JSON request for the clear command.
1036 // Build a evaluate request from the text command.
1037 var request = this.createRequest('clearbreakpoint');
1041 request.arguments = {};
1042 request.arguments.breakpoint = parseInt(args);
1047 return request.toJSONProtocol();
1051 // Create a JSON request for the change breakpoint command.
1055 var request;
1099 // Build a evaluate request from the text command.
1100 request = this.createRequest('setexceptionbreak');
1102 request.arguments = {};
1103 request.arguments.type = excType;
1104 request.arguments.enabled = (command == 'enable');
1106 return request.toJSONProtocol();
1110 // Build a evaluate request from the text command.
1111 request = this.createRequest('changebreakpoint');
1115 request.arguments = {};
1124 request.arguments.breakpoint = parseInt(breakpointArg);
1128 request.arguments.condition = otherArgs ? otherArgs : null;
1131 request
1134 request.arguments.enabled = false;
1137 request.arguments.ignoreCount = parseInt(otherArgs);
1146 return request.toJSONProtocol();
1150 // Create a JSON request for the disconnect command.
1152 var request;
1153 request = this.createRequest('disconnect');
1154 return request.toJSONProtocol();
1158 // Create a JSON request for the info command.
1160 var request;
1162 // Build a evaluate request from the text command.
1163 request = this.createRequest('listbreakpoints');
1166 // Build a evaluate request from the text command.
1167 request = this.createRequest('frame');
1170 // Build a evaluate request from the text command.
1171 request = this.createRequest('frame');
1175 // Build a evaluate request from the text command.
1181 return request.toJSONProtocol();
1186 var request;
1187 request = this.createRequest('v8flags');
1188 request.arguments = {};
1189 request.arguments.flags = args;
1190 return request.toJSONProtocol();
1195 var request;
1214 request = this.createRequest('gc');
1215 request.arguments = {};
1216 request.arguments.type = cmd;
1223 return request.toJSONProtocol();
1231 var request;
1295 // Build the verbose request:
1297 request = this.createLOLRequest('lol-'+cmd,
1301 request.arguments.verbose = true;
1303 request = this.createRequest('lol-'+cmd);
1304 request.arguments = {};
1307 request.arguments.filter = {};
1309 request.arguments.filter.type = type_filter;
1312 request.arguments.filter.space = space_filter;
1315 request.arguments.filter.prop = prop_filter;
1318 return request;
1335 var request;
1363 request = this.createRequest('lol-capture');
1378 request = this.createRequest('lol-delete');
1379 request.arguments = {};
1380 request.arguments.id = parseInt(id);
1383 request = this.createRequest('lol-reset');
1412 request = this.lolMakeListRequest(request_cmd,
1418 request.arguments.id1 = parseInt(args[1]);
1419 request.arguments.id2 = parseInt(args[2]);
1421 request.arguments.id1 = 0;
1422 request.arguments.id2 = parseInt(args[1]);
1424 request.arguments.id = extractObjId(args[1]);
1431 request = this.createRequest('lol-getid');
1432 request.arguments = {};
1433 request.arguments.address = args[1];
1443 // Built the info request:
1444 request = this.createLOLRequest('lol-info', 0, args[1], is_repeating);
1450 request = this.createRequest('lol-path');
1451 request.arguments = {};
1453 request.arguments.id1 = extractObjId(args[1]);
1454 request.arguments.id2 = extractObjId(args[2]);
1456 request.arguments.id1 = 0;
1457 request.arguments.id2 = extractObjId(args[1]);
1464 request = this.createRequest('lol-print');
1465 request.arguments = {};
1466 request.arguments.id = extractObjId(args[1]);
1472 request = this.createRequest('lol-reset');
1479 return request.toJSONProtocol();
1483 // Create a JSON request for the threads command.
1485 // Build a threads request from the text command.
1486 var request = this.createRequest('threads');
1487 return request.toJSONProtocol();
2356 * Get the packet request sequence.
2357 * @return {number} the packet request sequence
2365 * Get the packet request sequence.
2366 * @return {number} the packet request sequence