Lines Matching refs:Response
36 // Default number of frames to include in the response to backtrace request.
1289 // If message is based on a request this is a response. Fill the initial
1290 // response from the request.
1291 this.type = 'response';
1380 var response; // Generated response.
1386 // Create an initial response.
1387 response = this.createResponse(request);
1407 response.setOption('inlineRefs', true);
1410 response.setOption('maxStringLength', args.maxStringLength);
1417 %_Call(handler, this, request, response);
1423 // If there is no response object created one (without command).
1424 if (!response) {
1425 response = this.createResponse();
1427 response.success = false;
1428 response.message = TO_STRING(e);
1431 // Return the response as a JSON encoded string.
1433 if (!IS_UNDEFINED(response.running)) {
1434 // Response controls running state.
1435 this.running_ = response.running;
1437 response.running = this.running_;
1438 return response.toJSONProtocol();
1440 // Failed to generate response - return generic error.
1441 return '{"seq":' + response.seq + ',' +
1443 '"type":"response",' +
1449 return '{"seq":0,"type":"response","success":false,"message":"Internal error"}';
1454 DebugCommandProcessor.prototype.continueRequest_ = function(request, response) {
1481 response.running = true;
1485 DebugCommandProcessor.prototype.breakRequest_ = function(request, response) {
1491 function(request, response) {
1494 response.failed('Missing arguments');
1511 response.failed('Missing argument "type" or "target"');
1520 response.failed('Argument "target" is not a string value');
1528 response.failed('Error: "' + TO_STRING(e) +
1533 response.failed('"' + target + '" does not evaluate to a function');
1544 return response.failed('Object #' + handle + '# not found');
1547 return response.failed('Object #' + handle + '# is not a function');
1566 response.failed('Illegal type "' + type + '"');
1579 // Add the break point number to the response.
1580 response.body = { type: type,
1583 // Add break point information to the response.
1586 response.body.type = 'scriptId';
1587 response.body.script_id = break_point.script_id();
1589 response.body.type = 'scriptName';
1590 response.body.script_name = break_point.script_name();
1592 response.body.type = 'scriptRegExp';
1593 response.body.script_regexp = break_point.script_regexp_object().source;
1598 response.body.line = break_point.line();
1599 response.body.column = break_point.column();
1600 response.body.actual_locations = break_point.actual_locations();
1602 response.body.type = 'function';
1603 response.body.actual_locations = [break_point.actual_location];
1609 request, response) {
1612 response.failed('Missing arguments');
1624 response.failed('Missing argument "breakpoint"');
1650 request, response) {
1653 response.failed('Missing arguments');
1662 response.failed('Missing argument "groupId"');
1679 response.
1680 response.body = { breakpoints: cleared_break_points };
1685 request, response) {
1688 response.failed('Missing arguments');
1697 response.failed('Missing argument "breakpoint"');
1704 // Add the cleared break point number to the response.
1705 response.body = { breakpoint: break_point };
1710 request, response) {
1743 response.body = {
1752 function(request, response) {
1754 this.continueRequest_(request, response);
1759 function(request, response) {
1762 response.failed('Missing arguments');
1769 response.failed('Missing argument "type"');
1785 response.failed('Illegal value for "enabled":"' + enabled + '"');
1795 response.failed('Unknown "type":"' + type + '"');
1798 // Add the cleared break point number to the response.
1799 response.body = { 'type': type, 'enabled': enabled };
1804 request, response) {
1808 // Create simple response if there are no frames.
1810 response.body = {
1834 return response.failed('Invalid frame number');
1843 return response.failed(error);
1846 // Create the response body.
1851 response.body = {
1860 DebugCommandProcessor.prototype.frameRequest_ = function(request, response) {
1863 return response.failed('No frames');
1870 return response.failed('Invalid frame number');
1875 response.body = this.exec_state_.frame();
1926 DebugCommandProcessor.prototype.scopesRequest_ = function(request, response) {
1935 response.body = {
1944 DebugCommandProcessor.prototype.scopeRequest_ = function(request, response) {
1953 return response.failed('Invalid scope number');
1957 response.body = scope_holder.scope(scope_index);
1996 function(request, response) {
1998 response.failed('Missing arguments');
2003 response.failed('Missing variable name');
2013 response.failed('Missing scope number');
2026 response.body = {
2032 DebugCommandProcessor.prototype.evaluateRequest_ = function(request, response) {
2034 return response.failed('Missing arguments');
2049 return response.failed('Failed to convert expression argument to string');
2054 return response.failed('Arguments "frame" and "global" are exclusive');
2064 return response.failed("Context element #" + i +
2076 response.body = this.exec_state_.evaluateGlobal(
2088 return response.failed('No frames');
2095 return response.failed('Invalid frame "' + frame + '"');
2098 response.body = this.exec_state_.frame(frame_number).evaluate(
2103 response.body = this.exec_state_.frame().evaluate(
2110 DebugCommandProcessor.prototype.lookupRequest_ = function(request, response) {
2112 return response.failed('Missing arguments');
2120 return response.failed('Argument "handles" missing');
2126 response.setOption('includeSource', includeSource);
2135 return response.failed('Object #' + handle + '# not found');
2139 response.body = mirrors;
2144 function(request, response) {
2146 return response.failed('Missing arguments');
2155 return response.failed('Argument "type" missing');
2158 return response.failed('Argument "handle" missing');
2161 return response.failed('Invalid type "' + type + '"');
2168 response.body = mirror.referencedBy();
2170 response.body = mirror.constructedBy();
2173 return response.failed('Object #' + handle + '# not found');
2178 DebugCommandProcessor.prototype.sourceRequest_ = function(request, response) {
2181 return response.failed('No source');
2195 return response.failed('Invalid frame "' + frame + '"');
2204 return response.failed('No source');
2207 // Get the source slice and fill it into the response.
2210 return response.failed('Invalid line interval');
2212 response.body = {};
2213 response.body.source = slice.sourceText();
2214 response.body.fromLine = slice.from_line;
2215 response.body.toLine = slice.to_line;
2216 response
2217 response.body.toPosition = slice.to_position;
2218 response.body.totalLines = script.lineCount();
2222 DebugCommandProcessor.prototype.scriptsRequest_ = function(request, response) {
2231 return response.failed('Invalid types "' +
2238 response.setOption('includeSource', includeSource);
2263 response.body = [];
2285 response.body.push(MakeMirror(scripts[i]));
2291 DebugCommandProcessor.prototype.threadsRequest_ = function(request, response) {
2305 // Create the response body.
2306 response.body = {
2313 DebugCommandProcessor.prototype.suspendRequest_ = function(request, response) {
2314 response.running = false;
2318 DebugCommandProcessor.prototype.versionRequest_ = function(request, response) {
2319 response.body = {
2326 request, response) {
2328 return response.failed('Missing arguments');
2342 response.failed('Script not found');
2360 response.failed(e.message, e.details);
2365 response.body = {change_log: change_log, result: result_description};
2368 response.body.stepin_recommended = true;
2374 request, response) {
2376 return response.failed('Missing arguments');
2382 return response.failed('No frames');
2390 return response.failed('Invalid frame "' + frame + '"');
2400 response.body = {result: result_description};
2405 response) {
2408 response.failed('Missing arguments');
2415 response.body = { flags: [] };
2426 response.body.flags.push({ name: name, value: debugger_flag.getValue() });
2431 response.body.flags.push({ name: name, value: value });
2437 DebugCommandProcessor.prototype.v8FlagsRequest_ = function(request, response) {
2444 DebugCommandProcessor.prototype.gcRequest_ = function(request, response) {
2452 response.body = { "before": before, "after": after };