| BREAKPOINT_ACTION_MESSAGE |
Default value : 'The only currently supported breakpoint actions' + ' are CAPTURE and LOG.'
|
| NODE_VERSION_MESSAGE |
Default value : 'Node.js version not supported. Node.js 5.2.0 and ' +
'versions older than 0.12 are not supported.'
|
| PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS |
Default value : ((40 + 540) / 2) * 1000
|
| readFilep |
Default value : util.promisify(fs.readFile)
|
| ARG_LOCAL_LIMIT_MESSAGE_INDEX |
Type : number
|
Default value : 3
|
| assert |
Default value : debugAssert(!!process.env.CLOUD_DEBUG_ASSERTIONS)
|
| BUFFER_FULL_MESSAGE_INDEX |
Type : number
|
Default value : 0
|
| GETTER_MESSAGE_INDEX |
Type : number
|
Default value : 2
|
| NATIVE_PROPERTY_MESSAGE_INDEX |
Type : number
|
Default value : 1
|
| ARG_LOCAL_LIMIT_MESSAGE_INDEX |
Type : number
|
Default value : 3
|
| assert |
Default value : debugAssert(!!process.env.CLOUD_DEBUG_ASSERTIONS)
|
| BUFFER_FULL_MESSAGE_INDEX |
Type : number
|
Default value : 0
|
| FILE_PROTOCOL |
Type : string
|
Default value : 'file://'
|
| GETTER_MESSAGE_INDEX |
Type : number
|
Default value : 2
|
| NATIVE_PROPERTY_MESSAGE_INDEX |
Type : number
|
Default value : 1
|
| NO_STABLE_OBJECT_ID |
Default value : -1
|
| STABLE_OBJECT_ID_PROPERTY |
Type : string
|
Default value : '[[StableObjectId]]'
|
| CONCURRENCY |
Type : number
|
Default value : 10
|
| MAP_EXT |
Type : string
|
Default value : '.map'
|
| readFilep |
Default value : promisify(fs.readFile)
|
| WEBPACK_PREFIX |
Type : string
|
Default value : 'webpack://'
|
| debugApiConstructor |
Type : DebugApiConstructor
|
| MODULE_WRAP_PREFIX_LENGTH |
Default value : require('module')
.wrap('☃')
.indexOf('☃')
|
| singleton |
Type : DebugApi
|
| debuglet |
Type : Debuglet
|
| pjson |
Default value : require('../../package.json')
|
| defaultConfig |
Type : ResolvedDebugAgentConfig
|
Default value : {
// FIXME(ofrobots): presently this is dependent what cwd() is at the time this
// file is first required. We should make the default config static.
workingDirectory: process.cwd(),
allowRootAsWorkingDirectory: false,
description: undefined,
allowExpressions: false,
// FIXME(ofrobots): today we prioritize GAE_MODULE_NAME/GAE_MODULE_VERSION
// over the user specified config. We should reverse that.
serviceContext: {
service: undefined,
version: undefined,
minorVersion_: undefined,
},
appPathRelativeToRepository: undefined,
javascriptFileExtensions: ['.js'],
pathResolver: undefined,
logLevel: 1,
breakpointUpdateIntervalSec: 10,
breakpointExpirationSec: 60 * 60 * 24, // 24 hours
capture: {
includeNodeModules: false,
maxFrames: 20,
maxExpandFrames: 5,
maxProperties: 10,
maxDataSize: 20000,
maxStringLength: 100,
},
log: {maxLogsPerSecond: 50, logDelaySeconds: 1, logFunction: console.log},
internal: {
registerDelayOnFetcherErrorSec: 300, // 5 minutes.
maxRegistrationRetryDelay: 40,
},
forceNewAgent_: false,
testMode_: false,
}
|
| fakeAssert |
Type : FakeAssert
|
Default value : {
deepEqual: nop,
deepStrictEqual: nop,
doesNotThrow: nop,
equal: nop,
fail: nop,
ifError: nop,
notDeepEqual: nop,
notDeepStrictEqual: nop,
notEqual: nop,
notStrictEqual: nop,
ok: nop,
strictEqual: nop,
throws: nop,
AssertionError: nop,
rejects: nop,
doesNotReject: nop,
strict: nop,
}
|
| nop |
Default value : (_: {}) => _
|
| findit |
Type : events.EventEmitter
|
Default value : require('findit2')
|
| split |
Type : fs.WriteStream
|
Default value : require('split')
|
| messages |
Type : object
|
Default value : {
INVALID_BREAKPOINT: 'invalid snapshot - id or location missing',
SOURCE_FILE_NOT_FOUND:
'A script matching the source file was not found loaded on the debuggee',
SOURCE_FILE_AMBIGUOUS: 'Multiple files match the path specified',
V8_BREAKPOINT_ERROR: 'Unable to set breakpoint in v8',
V8_BREAKPOINT_CLEAR_ERROR: 'Unable to clear breakpoint in v8',
SYNTAX_ERROR_IN_CONDITION: 'Syntax error in condition: ',
ERROR_EVALUATING_CONDITION: 'Error evaluating condition: ',
ERROR_COMPILING_CONDITION: 'Error compiling condition.',
DISALLOWED_EXPRESSION: 'Expression not allowed',
SOURCE_MAP_READ_ERROR:
'The source map could not be read or was incorrectly formatted',
V8_BREAKPOINT_DISABLED: 'Internal error: V8 breakpoint externally disabled',
CAPTURE_BREAKPOINT_DATA: 'Error trying to capture snapshot data: ',
INVALID_LINE_NUMBER: 'Invalid snapshot position: ',
COULD_NOT_FIND_OUTPUT_FILE:
'Could not determine the output file associated with the transpiled input file',
}
|