Lines Matching refs:request
288 // Converts a text command to a JSON request.
299 // If the very first character is a { assume that a JSON request have been
300 // entered as a command. Converting that to a JSON request is trivial.
310 cmd_line = 'break'; // Not in debugger mode, break with a frame request.
518 this.type = 'request';
550 // Create a JSON request for the evaluation command.
559 // Build a lookup request.
560 var request = this.createRequest('lookup');
561 request.arguments = {};
562 request.arguments.handles = [ lookup_handle ];
563 return request.toJSONProtocol();
565 // Build an evaluate request.
566 var request = this.createRequest('evaluate');
567 request.arguments = {};
568 request.arguments.expression = expression;
569 // Request a global evaluation if there is no current frame.
571 request.arguments.global = true;
573 return request.toJSONProtocol();
578 // Create a JSON request for the references/instances command.
580 // Build a references request.
583 var request = this.createRequest('references');
584 request.arguments = {};
585 request.arguments.type = type;
586 request.arguments.handle = parseInt(handle_match[1]);
587 return request.toJSONProtocol();
594 // Create a JSON request for the continue command.
596 var request = this.createRequest('continue');
597 return request.toJSONProtocol();
601 // Create a JSON request for the step command.
605 var request = this.createRequest('continue');
606 request.arguments = {};
631 request.arguments.stepcount = stepcount;
638 request.arguments.stepaction = 'in';
643 request.arguments.stepaction = 'min';
648 request.arguments.stepaction = 'next';
653 request.arguments.stepaction = 'out';
662 request.arguments.stepaction = type;
663 request.arguments.stepcount = stepcount;
668 request.arguments.stepaction = type;
671 return request.toJSONProtocol();
675 // Create a JSON request for the backtrace command.
677 // Build a backtrace request from the text command.
678 var request = this.createRequest('backtrace');
681 request.arguments = {};
682 request.arguments.fromFrame = 0;
683 request.arguments.toFrame = 10;
690 request.arguments.fromFrame = 0;
691 request.arguments.toFrame = frameCount;
694 request.arguments.fromFrame = 0;
695 request.arguments.toFrame = -frameCount;
696 request.arguments.bottom = true;
712 request.arguments.fromFrame = fromFrame;
713 request.arguments.toFrame = toFrame + 1;
718 return request.toJSONProtocol();
722 // Create a JSON request for the frame command.
724 // Build a frame request from the text command.
725 var request = this.createRequest('frame');
728 request.arguments = {};
729 request.arguments.number = args[0];
731 return request.toJSONProtocol();
735 // Create a JSON request for the scopes command.
737 // Build a scopes request from the text command.
738 var request = this.createRequest('scopes');
739 return request.toJSONProtocol();
743 // Create a JSON request for the scope command.
745 // Build a scope request from the text command.
746 var request = this.createRequest('scope');
749 request.arguments = {};
750 request.arguments.number = args[0];
752 return request.toJSONProtocol();
756 // Create a JSON request for the print command.
758 // Build an evaluate request from the text command.
766 // Create a JSON request for the dir command.
768 // Build an evaluate request from the text command.
776 // Create a JSON request for the references command.
778 // Build an evaluate request from the text command.
787 // Create a JSON request for the instances command.
789 // Build an evaluate request from the text command.
794 // Build a references request.
799 // Create a JSON request for the list command.
834 // Create a JSON request for the source command.
836 // Build a evaluate request from the text command.
837 var request = this.createRequest('source');
855 // Request source arround current source location.
856 request.arguments = {};
857 request.arguments.fromLine = from;
858 request.arguments.toLine = from + lines;
860 return request.toJSONProtocol();
864 // Create a JSON request for the scripts command.
866 // Build a evaluate request from the text command.
867 var request = this.createRequest('scripts');
877 request.arguments = {};
880 request.arguments.types = ScriptTypeFlag(Debug.ScriptType.Native);
884 request.arguments.types = ScriptTypeFlag(Debug.ScriptType.Extension);
888 request.arguments.types =
897 request.arguments.filter = args[0];
902 return request.toJSONProtocol();
906 // Create a JSON request for the break command.
908 // Build a evaluate request from the text command.
918 var request = this.createRequest('setbreakpoint');
957 request.arguments = {};
958 request.arguments.type = type;
959 request.arguments.target = target;
960 request.arguments.line = line;
961 request.arguments.column = column;
962 request.arguments.condition = condition;
964 var request = this.createRequest('suspend');
967 return request.toJSONProtocol();
975 var request = this.createRequest('listbreakpoints');
976 return request.toJSONProtocol();
980 // Create a JSON request for the clear command.
982 // Build a evaluate request from the text command.
983 var request = this.createRequest('clearbreakpoint');
987 request.arguments = {};
988 request.arguments.breakpoint = parseInt(args);
993 return request.toJSONProtocol();
997 // Create a JSON request for the change breakpoint command.
1001 var request;
1045 // Build a evaluate request from the text command.
1046 request = this.createRequest('setexceptionbreak');
1048 request.arguments = {};
1049 request.arguments.type = excType;
1050 request.arguments.enabled = (command == 'enable');
1052 return request.toJSONProtocol();
1056 // Build a evaluate request from the text command.
1057 request = this.createRequest('changebreakpoint');
1061 request.arguments = {};
1070 request.arguments.breakpoint = parseInt(breakpointArg);
1074 request.arguments.condition = otherArgs ? otherArgs : null;
1077 request.arguments.enabled = true;
1080 request.arguments.enabled = false;
1083 request.arguments.ignoreCount = parseInt(otherArgs);
1092 return request.toJSONProtocol();
1096 // Create a JSON request for the disconnect command.
1098 var request;
1099 request = this.createRequest('disconnect');
1100 return request.toJSONProtocol();
1104 // Create a JSON request for the info command.
1106 var request;
1108 // Build a evaluate request from the text command.
1109 request = this.createRequest('listbreakpoints');
1112 // Build a evaluate request from the text command.
1113 request = this.createRequest('frame');
1116 // Build a evaluate request from the text command.
1117 request = this.createRequest('frame');
1123 return request.toJSONProtocol();
1128 var request;
1129 request = this.createRequest('v8flags');
1130 request.arguments = {};
1131 request.arguments.flags = args;
1132 return request.toJSONProtocol();
1137 var request;
1156 request = this.createRequest('gc');
1157 request.arguments = {};
1158 request.arguments.type = cmd;
1165 return request.toJSONProtocol();
1169 // Create a JSON request for the threads command.
1171 // Build a threads request from the text command.
1172 var request = this.createRequest('threads');
1173 return request.toJSONProtocol();
1739 * Get the packet request sequence.
1740 * @return {number} the packet request sequence
1748 * Get the packet request sequence.
1749 * @return {number} the packet request sequence