Lines Matching full:args
322 var args;
325 args = '';
328 args = cmd_line.slice(pos).replace(/^\s+|\s+$/g, '');
342 this.request_ = this.continueCommandToJSONRequest_(args);
347 this.request_ = this.stepCommandToJSONRequest_(args, 'in');
352 this.request_ = this.stepCommandToJSONRequest_(args, 'min');
357 this.request_ = this.stepCommandToJSONRequest_(args, 'next');
362 this.request_ = this.stepCommandToJSONRequest_(args, 'out');
367 this.request_ = this.backtraceCommandToJSONRequest_(args);
372 this.request_ = this.frameCommandToJSONRequest_(args);
376 this.request_ = this.scopesCommandToJSONRequest_(args);
380 this.request_ = this.scopeCommandToJSONRequest_(args);
386 this.request_ = this.disconnectCommandToJSONRequest_(args);
405 this.request_ = this.printCommandToJSONRequest_(args);
409 this.request_ = this.dirCommandToJSONRequest_(args);
413 this.request_ = this.referencesCommandToJSONRequest_(args);
417 this.request_ = this.instancesCommandToJSONRequest_(args);
422 this.request_ = this.listCommandToJSONRequest_(args);
425 this.request_ = this.sourceCommandToJSONRequest_(args);
431 this.request_ = this.scriptsCommandToJSONRequest_(args);
436 this.request_ = this.breakCommandToJSONRequest_(args);
441 this.request_ = this.breakpointsCommandToJSONRequest_(args);
447 this.request_ = this.clearCommandToJSONRequest_(args);
451 this.request_ = this.threadsCommandToJSONRequest_(args);
455 this.request_ = this.changeBreakpointCommandToJSONRequest_(args, 'cond');
461 this.changeBreakpointCommandToJSONRequest_(args, 'enable');
467 this.changeBreakpointCommandToJSONRequest_(args, 'disable');
472 this.changeBreakpointCommandToJSONRequest_(args, 'ignore');
477 this.request_ = this.infoCommandToJSONRequest_(args);
481 this.request_ = this.v8FlagsToJSONRequest_(args);
485 this.request_ = this.gcToJSONRequest_(args);
492 this.traceCommand_(args);
497 this.helpCommand_(args);
505 this.request_ = this.lolToJSONRequest_(args, is_repeating);
642 DebugRequest.prototype.continueCommandToJSONRequest_ = function(args) {
649 DebugRequest.prototype.stepCommandToJSONRequest_ = function(args, type) {
657 // Only process args if the command is 'step' which is indicated by type being
658 // set to 'in'. For all other commands, ignore the args.
659 if (args && args.length > 0) {
660 args = args.split(/\s+/g);
662 if (args.length > 2) {
666 if (args.length > 0) {
670 var stepcount = Number(args[0]);
673 if (args.length == 2) {
674 var stepcount = parseInt(args[1]);
676 throw new Error('Invalid step count argument "' + args[0] + '".');
682 switch (args[0]) {
704 throw new Error('Invalid step argument "' + args[0] + '".');
723 DebugRequest.prototype.backtraceCommandToJSONRequest_ = function(args) {
732 args = args.split(/\s*[ ]+\s*/g);
733 if (args.length == 1 && args[0].length > 0) {
734 var frameCount = parseInt(args[0]);
745 } else if (args.length == 2) {
746 var fromFrame = parseInt(args[0]);
747 var toFrame = parseInt(args[1]);
749 throw new Error('Invalid start frame argument "' + args[0] + '".');
752 throw new Error('Invalid end frame argument "' + args[1] + '".');
761 } else if (args.length > 2) {
770 DebugRequest.prototype.frameCommandToJSONRequest_ = function(args) {
773 args = args.split(/\s*[ ]+\s*/g);
774 if (args.length > 0 && args[0].length > 0) {
776 request.arguments.number = args[0];
783 DebugRequest.prototype.scopesCommandToJSONRequest_ = function(args) {
791 DebugRequest.prototype.scopeCommandToJSONRequest_ = function(args) {
794 args = args.split(/\s*[ ]+\s*/g);
795 if (args.length > 0 && args[0].length > 0) {
797 request.arguments.number = args[0];
804 DebugRequest.prototype.printCommandToJSONRequest_ = function(args) {
806 if (args.length == 0) {
809 return this.makeEvaluateJSONRequest_(args);
814 DebugRequest.prototype.dirCommandToJSONRequest_ = function(args) {
816 if (args.length == 0) {
819 return this.makeEvaluateJSONRequest_(args);
824 DebugRequest.prototype.referencesCommandToJSONRequest_ = function(args) {
826 if (args.length == 0) {
830 return this.makeReferencesJSONRequest_(args, 'referencedBy');
835 DebugRequest.prototype.instancesCommandToJSONRequest_ = function(args) {
837 if (args.length == 0) {
842 return this.makeReferencesJSONRequest_(args, 'constructedBy');
847 DebugRequest.prototype.listCommandToJSONRequest_ = function(args) {
864 args = args.split(/\s*,\s*/g);
865 if (args == '') {
866 } else if ((args.length == 1) && (args[0] == '-')) {
868 } else if (args.length == 2) {
869 from = parseInt(args[0]);
870 lines = parseInt(args[1]) - from + 1; // inclusive of the ending line.
882 DebugRequest.prototype.sourceCommandToJSONRequest_ = function(args) {
891 args = args.split(/\s*[ ]+\s*/g);
892 if (args.length > 1 && args[0].length > 0 && args[1].length > 0) {
893 from = parseInt(args[0]) - 1;
894 lines = parseInt(args[1]);
895 } else if (args.length > 0 && args[0].length > 0) {
896 from = parseInt(args[0]) - 1;
912 DebugRequest.prototype.scriptsCommandToJSONRequest_ = function(args) {
917 if (args && args.length > 0) {
918 args = args.split(/\s*[ ]+\s*/g);
920 if (args.length > 1) {
925 switch (args[0]) {
944 request.arguments.filter = args[0];
954 DebugRequest.prototype.breakCommandToJSONRequest_ = function(args) {
957 if (args && args.length > 0) {
958 var target = args;
967 // Break the args into target spec and condition if appropriate.
970 pos = args.indexOf(' ');
972 target = args.substring(0, pos);
973 condition = args.substring(pos + 1, args.length);
1013 DebugRequest.prototype.breakpointsCommandToJSONRequest_ = function(args) {
1014 if (args && args.length > 0) {
1023 DebugRequest.prototype.clearCommandToJSONRequest_ = function(args) {
1028 if (args && args.length > 0) {
1030 request.arguments.breakpoint = parseInt(args);
1041 function(args, command) {
1051 args && args.length > 1) {
1052 var nextPos = args.indexOf(' ');
1053 var arg1 = (nextPos > 0) ? args.substring(0, nextPos) : args;
1062 args.substring(nextPos + 1, args.length) : 'all';
1076 args.substring(nextPos + 1, args.length) : null;
1102 if (args && args.length > 0) {
1104 var pos = args.indexOf(' ');
1105 var breakpointArg = args;
1108 breakpointArg = args.substring(0, pos);
1109 otherArgs = args.substring(pos + 1, args.length);
1139 DebugRequest.prototype.disconnectCommandToJSONRequest_ = function(args) {
1147 DebugRequest.prototype.infoCommandToJSONRequest_ = function(args) {
1149 if (args && (args == 'break' || args == 'br')) {
1153 } else if (args && (args == 'locals' || args == 'lo')) {
1157 } else if (args && (args == 'args' || args == 'ar')) {
1160 last_cmd = 'info args';
1162 args && (args == 'liveobjectlist' || args == 'lol')) {
1173 DebugRequest.prototype.v8FlagsToJSONRequest_ = function(args) {
1177 request.arguments.flags = args;
1182 DebugRequest.prototype.gcToJSONRequest_ = function(args) {
1184 if (!args) {
1185 args = 'all';
1187 var args = args.split(/\s+/g);
1188 var cmd = args[0];
1215 // Args: [v[erbose]] [<N>] [i[ndex] <i>] [t[ype] <type>] [sp[ace] <space>]
1217 function(cmd, args, first_arg_index, is_repeating) {
1228 for (i = first_arg_index; i < args.length; i++) {
1229 var arg = args[i];
1232 // Nothing to do. This is already implied by args.length > 3.
1243 if (args.length < i) {
1246 start_index = parseInt(args[i]);
1249 throw new Error('Invalid index ' + args[i] + '.');
1257 if (args.length < i) {
1260 type_filter = args[i];
1265 if (args.length < i) {
1268 space_filter = args[i];
1273 if (args.length < i) {
1276 prop_filter = args[i];
1279 throw new Error('Unknown args at ' + arg + '.');
1310 function extractObjId(args) {
1311 var id = args;
1316 throw new Error('Invalid obj id ' + args + '.');
1322 DebugRequest.prototype.lolToJSONRequest_ = function(args, is_repeating) {
1325 if (!args) {
1326 args = 'info';
1329 var orig_args = args;
1333 var args = args.split(/\s+/g);
1334 var cmd = args[0];
1344 args.unshift(cmd);
1358 if (args.length < 2) {
1360 } else if (args.length > 2) {
1363 id = args[1];
1395 if (args.length < first_arg_index) {
1401 args,
1406 request.arguments.id1 = parseInt(args[1]);
1407 request.arguments.id2 = parseInt(args[2]);
1410 request.arguments.id2 = parseInt(args[1]);
1412 request.arguments.id = extractObjId(args[1]);
1421 request.arguments.address = args[1];
1428 if (args.length > 2) {
1432 request = this.createLOLRequest('lol-info', 0, args[1], is_repeating);
1440 if (args.length > 2) {
1441 request.arguments.id1 = extractObjId(args[1]);
1442 request.arguments.id2 = extractObjId(args[2]);
1445 request.arguments.id2 = extractObjId(args[1]);
1454 request.arguments.id = extractObjId(args[1]);
1472 DebugRequest.prototype.threadsCommandToJSONRequest_ = function(args) {
1480 DebugRequest.prototype.traceCommand_ = function(args) {
1482 if (args && args.length > 0) {
1483 if (args == 'compile') {
1486 } else if (args === 'debug json' || args === 'json' || args === 'packets') {
1499 DebugRequest.prototype.helpCommand_ = function(args) {
1501 if (args && args.length > 0) {
2053 } else if (last_cmd === 'info args') {
2054 var args = body.arguments;
2055 if (args.length === 0) {
2058 for (var i = 0; i < args.length; i++) {
2059 var arg = args[i];