Debugger API¶
- The
Debugger
Interface - The Debugger Object
new Debugger([global, ...])
- Accessor Properties of the Debugger Prototype Object
- Debugger Handler Functions
- Function Properties of the Debugger Prototype Object
addDebuggee(global)
addAllGlobalsAsDebuggees()
removeDebuggee(global)
removeAllDebuggees()
hasDebuggee(global)
getDebuggees()
getNewestFrame()
findSources()
findScripts([query])
findSourceURLs()
findObjects([query])
clearBreakpoint(handler)
clearAllBreakpoints()
findAllGlobals()
makeGlobalObjectReference(global)
adoptDebuggeeValue(value)
adoptFrame(frame)
adoptSource(source)
enableAsyncStack(global)
disableAsyncStack(global)
enableUnlimitedStacksCapturing(global)
disableUnlimitedStacksCapturing(global)
collectNativeTrace()
- Static methods of the Debugger Object
- Debugger.Object
- Accessor Properties of the Debugger.Object prototype
proto
class
callable
name
displayName
parameterNames
script
environment
isError
errorMessageName
errorLineNumber
errorColumnNumber
isBoundFunction
isArrowFunction
isGeneratorFunction
isAsyncFunction
isClassConstructor
isPromise
boundTargetFunction
boundThis
boundArguments
isProxy
proxyTarget
proxyHandler
promiseState
promiseValue
promiseReason
promiseAllocationSite
promiseResolutionSite
promiseID
promiseDependentPromises
promiseLifetime
promiseTimeToResolution
allocationSite
- Function Properties of the Debugger.Object prototype
getProperty(key, [receiver])
setProperty(key, value<, [receiver])
getOwnPropertyDescriptor(key)
getOwnPropertyNames()
getOwnPropertyNamesLength()
getOwnPropertySymbols()
defineProperty(key, attributes)
defineProperties(properties)
deleteProperty(key)
seal()
freeze()
preventExtensions()
isSealed()
isFrozen()
isExtensible()
makeDebuggeeValue(value)
isSameNative(value)
isSameNativeWithJitInfo(value)
isNativeGetterWithJitInfo()
decompile([pretty])
call(this, argument, ...)
apply(this, arguments)
executeInGlobal(code, [options])
executeInGlobalWithBindings(code, bindings, [options])
createSource(options)
asEnvironment()
unwrap()
unsafeDereference()
forceLexicalInitializationByName(binding)
getPromiseReactions
- Accessor Properties of the Debugger.Object prototype
- Debugger.Script
- Debugger.Script for JSScripts
- Debugger.Script for WebAssembly
- Convention
- Accessor Properties of the Debugger.Script Prototype Object
- Function Properties of the Debugger.Script Prototype Object
getChildScripts()
getPossibleBreakpoints(query)
getPossibleBreakpointOffsets(query)
getOffsetMetadata(offset)
setBreakpoint(offset, handler)
getBreakpoints([offset])
clearBreakpoint(handler, [offset])
clearAllBreakpoints([offset])
getEffectfulOffsets()
getOffsetsCoverage()
:isInCatchScope([offset])
- Deprecated Debugger.Script Prototype Functions
- Debugger.Source
- Debugger.Environment
- Debugger.Frame
- Debugger.Memory
- Allocation Site Tracking
- Allocation Logging
- Censuses
- Accessor Properties of the
Debugger.Memory.prototype
Object trackingAllocationSites
allocationSamplingProbability
maxAllocationsLogLength
allocationsLogOverflowed
- Debugger.Memory Handler Functions
onGarbageCollection(statistics)
collections
reason
nonincrementalReason
gcCycleNumber
- Function Properties of the
Debugger.Memory.prototype
Object drainAllocationsLog()
takeCensus(options)
- Memory Use Analysis Exposes Implementation Details
- Objects
- Strings
- Scripts
- General Conventions
- Tutorial: Show Allocations Per Call Path
- Tutorial: Set a breakpoint using
Debugger
- Tutorial: Evaluate an Expression When a debugger; Statement Is Executed