Lines Matching refs:request
255 // Converts a text command to a JSON request.
262 // If the very first character is a { assume that a JSON request have been
263 // entered as a command. Converting that to a JSON request is trivial.
379 this.type = 'request';
411 // Create a JSON request for the evaluation command.
420 // Build a lookup request.
421 var request = this.createRequest('lookup');
422 request.arguments = {};
423 request.arguments.handles = [ lookup_handle ];
424 return request.toJSONProtocol();
426 // Build an evaluate request.
427 var request = this.createRequest('evaluate');
428 request.arguments = {};
429 request.arguments.expression = expression;
430 // Request a global evaluation if there is no current frame.
432 request.arguments.global = true;
434 return request.toJSONProtocol();
439 // Create a JSON request for the references/instances command.
441 // Build a references request.
444 var request = this.createRequest('references');
445 request.arguments = {};
446 request.arguments.type = type;
447 request.arguments.handle = parseInt(handle_match[1]);
448 return request.toJSONProtocol();
455 // Create a JSON request for the continue command.
457 var request = this.createRequest('continue');
458 return request.toJSONProtocol();
462 // Create a JSON request for the step command.
466 var request = this.createRequest('continue');
467 request.arguments = {};
484 request.arguments.stepcount = stepcount;
491 request.arguments.stepaction = 'in';
496 request.arguments.stepaction = 'min';
501 request.arguments.stepaction = 'next';
506 request.arguments.stepaction = 'out';
515 request.arguments.stepaction = 'next';
518 return request.toJSONProtocol();
522 // Create a JSON request for the backtrace command.
524 // Build a backtrace request from the text command.
525 var request = this.createRequest('backtrace');
528 request.arguments = {};
529 request.arguments.fromFrame = 0;
530 request.arguments.toFrame = 10;
537 request.arguments.fromFrame = 0;
538 request.arguments.toFrame = frameCount;
541 request.arguments.fromFrame = 0;
542 request.arguments.toFrame = -frameCount;
543 request.arguments.bottom = true;
559 request.arguments.fromFrame = fromFrame;
560 request.arguments.toFrame = toFrame + 1;
565 return request.toJSONProtocol();
569 // Create a JSON request for the frame command.
571 // Build a frame request from the text command.
572 var request = this.createRequest('frame');
575 request.arguments = {};
576 request.arguments.number = args[0];
578 return request
582 // Create a JSON request for the scopes command.
584 // Build a scopes request from the text command.
585 var request = this.createRequest('scopes');
586 return request.toJSONProtocol();
590 // Create a JSON request for the scope command.
592 // Build a scope request from the text command.
593 var request = this.createRequest('scope');
596 request.arguments = {};
597 request.arguments.number = args[0];
599 return request.toJSONProtocol();
603 // Create a JSON request for the print command.
605 // Build an evaluate request from the text command.
613 // Create a JSON request for the dir command.
615 // Build an evaluate request from the text command.
623 // Create a JSON request for the references command.
625 // Build an evaluate request from the text command.
634 // Create a JSON request for the instances command.
636 // Build an evaluate request from the text command.
641 // Build a references request.
646 // Create a JSON request for the source command.
648 // Build a evaluate request from the text command.
649 var request = this.createRequest('source');
667 // Request source arround current source location.
668 request.arguments = {};
669 request.arguments.fromLine = from;
670 request.arguments.toLine = from + lines;
672 return request.toJSONProtocol();
676 // Create a JSON request for the scripts command.
678 // Build a evaluate request from the text command.
679 var request = this.createRequest('scripts');
689 request.arguments = {};
692 request.arguments.types = ScriptTypeFlag(Debug.ScriptType.Native);
696 request.arguments.types = ScriptTypeFlag(Debug.ScriptType.Extension);
700 request.arguments.types =
711 return request.toJSONProtocol();
715 // Create a JSON request for the break command.
717 // Build a evaluate request from the text command.
718 var request = this.createRequest('setbreakpoint');
759 request.arguments = {};
760 request.arguments.type = type;
761 request.arguments.target = target;
762 request.arguments.line = line;
763 request.arguments.column = column;
764 request.arguments.condition = condition;
769 return request.toJSONProtocol();
773 // Create a JSON request for the clear command.
775 // Build a evaluate request from the text command.
776 var request = this.createRequest('clearbreakpoint');
780 request.arguments = {};
781 request.arguments.breakpoint = parseInt(args);
786 return request.toJSONProtocol();
790 // Create a JSON request for the threads command.
792 // Build a threads request from the text command.
793 var request = this.createRequest('threads');
794 return request.toJSONProtocol();
1180 * Get the packet request sequence.
1181 * @return {number} the packet request sequence
1189 * Get the packet request sequence.
1190 * @return {number} the packet request sequence