12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257 |
- // tslint:disable-next-line:dt-header
- // Type definitions for inspector
-
- // These definitions are auto-generated.
- // Please see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/19330
- // for more information.
-
- /**
- * The inspector module provides an API for interacting with the V8 inspector.
- */
- declare module "inspector" {
- import { EventEmitter } from 'events';
-
- interface InspectorNotification<T> {
- method: string;
- params: T;
- }
-
- namespace Console {
- /**
- * Console message.
- */
- interface ConsoleMessage {
- /**
- * Message source.
- */
- source: string;
- /**
- * Message severity.
- */
- level: string;
- /**
- * Message text.
- */
- text: string;
- /**
- * URL of the message origin.
- */
- url?: string;
- /**
- * Line number in the resource that generated this message (1-based).
- */
- line?: number;
- /**
- * Column number in the resource that generated this message (1-based).
- */
- column?: number;
- }
-
- interface MessageAddedEventDataType {
- /**
- * Console message that has been added.
- */
- message: ConsoleMessage;
- }
- }
-
- namespace Debugger {
- /**
- * Breakpoint identifier.
- */
- type BreakpointId = string;
-
- /**
- * Call frame identifier.
- */
- type CallFrameId = string;
-
- /**
- * Location in the source code.
- */
- interface Location {
- /**
- * Script identifier as reported in the `Debugger.scriptParsed`.
- */
- scriptId: Runtime.ScriptId;
- /**
- * Line number in the script (0-based).
- */
- lineNumber: number;
- /**
- * Column number in the script (0-based).
- */
- columnNumber?: number;
- }
-
- /**
- * Location in the source code.
- * @experimental
- */
- interface ScriptPosition {
- lineNumber: number;
- columnNumber: number;
- }
-
- /**
- * JavaScript call frame. Array of call frames form the call stack.
- */
- interface CallFrame {
- /**
- * Call frame identifier. This identifier is only valid while the virtual machine is paused.
- */
- callFrameId: CallFrameId;
- /**
- * Name of the JavaScript function called on this call frame.
- */
- functionName: string;
- /**
- * Location in the source code.
- */
- functionLocation?: Location;
- /**
- * Location in the source code.
- */
- location: Location;
- /**
- * JavaScript script name or url.
- */
- url: string;
- /**
- * Scope chain for this call frame.
- */
- scopeChain: Scope[];
- /**
- * `this` object for this call frame.
- */
- this: Runtime.RemoteObject;
- /**
- * The value being returned, if the function is at return point.
- */
- returnValue?: Runtime.RemoteObject;
- }
-
- /**
- * Scope description.
- */
- interface Scope {
- /**
- * Scope type.
- */
- type: string;
- /**
- * Object representing the scope. For `global` and `with` scopes it represents the actual
- * object; for the rest of the scopes, it is artificial transient object enumerating scope
- * variables as its properties.
- */
- object: Runtime.RemoteObject;
- name?: string;
- /**
- * Location in the source code where scope starts
- */
- startLocation?: Location;
- /**
- * Location in the source code where scope ends
- */
- endLocation?: Location;
- }
-
- /**
- * Search match for resource.
- */
- interface SearchMatch {
- /**
- * Line number in resource content.
- */
- lineNumber: number;
- /**
- * Line with match content.
- */
- lineContent: string;
- }
-
- interface BreakLocation {
- /**
- * Script identifier as reported in the `Debugger.scriptParsed`.
- */
- scriptId: Runtime.ScriptId;
- /**
- * Line number in the script (0-based).
- */
- lineNumber: number;
- /**
- * Column number in the script (0-based).
- */
- columnNumber?: number;
- type?: string;
- }
-
- interface ContinueToLocationParameterType {
- /**
- * Location to continue to.
- */
- location: Location;
- targetCallFrames?: string;
- }
-
- interface EvaluateOnCallFrameParameterType {
- /**
- * Call frame identifier to evaluate on.
- */
- callFrameId: CallFrameId;
- /**
- * Expression to evaluate.
- */
- expression: string;
- /**
- * String object group name to put result into (allows rapid releasing resulting object handles
- * using `releaseObjectGroup`).
- */
- objectGroup?: string;
- /**
- * Specifies whether command line API should be available to the evaluated expression, defaults
- * to false.
- */
- includeCommandLineAPI?: boolean;
- /**
- * In silent mode exceptions thrown during evaluation are not reported and do not pause
- * execution. Overrides `setPauseOnException` state.
- */
- silent?: boolean;
- /**
- * Whether the result is expected to be a JSON object that should be sent by value.
- */
- returnByValue?: boolean;
- /**
- * Whether preview should be generated for the result.
- * @experimental
- */
- generatePreview?: boolean;
- /**
- * Whether to throw an exception if side effect cannot be ruled out during evaluation.
- */
- throwOnSideEffect?: boolean;
- /**
- * Terminate execution after timing out (number of milliseconds).
- * @experimental
- */
- timeout?: Runtime.TimeDelta;
- }
-
- interface GetPossibleBreakpointsParameterType {
- /**
- * Start of range to search possible breakpoint locations in.
- */
- start: Location;
- /**
- * End of range to search possible breakpoint locations in (excluding). When not specified, end
- * of scripts is used as end of range.
- */
- end?: Location;
- /**
- * Only consider locations which are in the same (non-nested) function as start.
- */
- restrictToFunction?: boolean;
- }
-
- interface GetScriptSourceParameterType {
- /**
- * Id of the script to get source for.
- */
- scriptId: Runtime.ScriptId;
- }
-
- interface GetStackTraceParameterType {
- stackTraceId: Runtime.StackTraceId;
- }
-
- interface PauseOnAsyncCallParameterType {
- /**
- * Debugger will pause when async call with given stack trace is started.
- */
- parentStackTraceId: Runtime.StackTraceId;
- }
-
- interface RemoveBreakpointParameterType {
- breakpointId: BreakpointId;
- }
-
- interface RestartFrameParameterType {
- /**
- * Call frame identifier to evaluate on.
- */
- callFrameId: CallFrameId;
- }
-
- interface SearchInContentParameterType {
- /**
- * Id of the script to search in.
- */
- scriptId: Runtime.ScriptId;
- /**
- * String to search for.
- */
- query: string;
- /**
- * If true, search is case sensitive.
- */
- caseSensitive?: boolean;
- /**
- * If true, treats string parameter as regex.
- */
- isRegex?: boolean;
- }
-
- interface SetAsyncCallStackDepthParameterType {
- /**
- * Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async
- * call stacks (default).
- */
- maxDepth: number;
- }
-
- interface SetBlackboxPatternsParameterType {
- /**
- * Array of regexps that will be used to check script url for blackbox state.
- */
- patterns: string[];
- }
-
- interface SetBlackboxedRangesParameterType {
- /**
- * Id of the script.
- */
- scriptId: Runtime.ScriptId;
- positions: ScriptPosition[];
- }
-
- interface SetBreakpointParameterType {
- /**
- * Location to set breakpoint in.
- */
- location: Location;
- /**
- * Expression to use as a breakpoint condition. When specified, debugger will only stop on the
- * breakpoint if this expression evaluates to true.
- */
- condition?: string;
- }
-
- interface SetBreakpointByUrlParameterType {
- /**
- * Line number to set breakpoint at.
- */
- lineNumber: number;
- /**
- * URL of the resources to set breakpoint on.
- */
- url?: string;
- /**
- * Regex pattern for the URLs of the resources to set breakpoints on. Either `url` or
- * `urlRegex` must be specified.
- */
- urlRegex?: string;
- /**
- * Script hash of the resources to set breakpoint on.
- */
- scriptHash?: string;
- /**
- * Offset in the line to set breakpoint at.
- */
- columnNumber?: number;
- /**
- * Expression to use as a breakpoint condition. When specified, debugger will only stop on the
- * breakpoint if this expression evaluates to true.
- */
- condition?: string;
- }
-
- interface SetBreakpointOnFunctionCallParameterType {
- /**
- * Function object id.
- */
- objectId: Runtime.RemoteObjectId;
- /**
- * Expression to use as a breakpoint condition. When specified, debugger will
- * stop on the breakpoint if this expression evaluates to true.
- */
- condition?: string;
- }
-
- interface SetBreakpointsActiveParameterType {
- /**
- * New value for breakpoints active state.
- */
- active: boolean;
- }
-
- interface SetPauseOnExceptionsParameterType {
- /**
- * Pause on exceptions mode.
- */
- state: string;
- }
-
- interface SetReturnValueParameterType {
- /**
- * New return value.
- */
- newValue: Runtime.CallArgument;
- }
-
- interface SetScriptSourceParameterType {
- /**
- * Id of the script to edit.
- */
- scriptId: Runtime.ScriptId;
- /**
- * New content of the script.
- */
- scriptSource: string;
- /**
- * If true the change will not actually be applied. Dry run may be used to get result
- * description without actually modifying the code.
- */
- dryRun?: boolean;
- }
-
- interface SetSkipAllPausesParameterType {
- /**
- * New value for skip pauses state.
- */
- skip: boolean;
- }
-
- interface SetVariableValueParameterType {
- /**
- * 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch'
- * scope types are allowed. Other scopes could be manipulated manually.
- */
- scopeNumber: number;
- /**
- * Variable name.
- */
- variableName: string;
- /**
- * New variable value.
- */
- newValue: Runtime.CallArgument;
- /**
- * Id of callframe that holds variable.
- */
- callFrameId: CallFrameId;
- }
-
- interface StepIntoParameterType {
- /**
- * Debugger will issue additional Debugger.paused notification if any async task is scheduled
- * before next pause.
- * @experimental
- */
- breakOnAsyncCall?: boolean;
- }
-
- interface EnableReturnType {
- /**
- * Unique identifier of the debugger.
- * @experimental
- */
- debuggerId: Runtime.UniqueDebuggerId;
- }
-
- interface EvaluateOnCallFrameReturnType {
- /**
- * Object wrapper for the evaluation result.
- */
- result: Runtime.RemoteObject;
- /**
- * Exception details.
- */
- exceptionDetails?: Runtime.ExceptionDetails;
- }
-
- interface GetPossibleBreakpointsReturnType {
- /**
- * List of the possible breakpoint locations.
- */
- locations: BreakLocation[];
- }
-
- interface GetScriptSourceReturnType {
- /**
- * Script source.
- */
- scriptSource: string;
- }
-
- interface GetStackTraceReturnType {
- stackTrace: Runtime.StackTrace;
- }
-
- interface RestartFrameReturnType {
- /**
- * New stack trace.
- */
- callFrames: CallFrame[];
- /**
- * Async stack trace, if any.
- */
- asyncStackTrace?: Runtime.StackTrace;
- /**
- * Async stack trace, if any.
- * @experimental
- */
- asyncStackTraceId?: Runtime.StackTraceId;
- }
-
- interface SearchInContentReturnType {
- /**
- * List of search matches.
- */
- result: SearchMatch[];
- }
-
- interface SetBreakpointReturnType {
- /**
- * Id of the created breakpoint for further reference.
- */
- breakpointId: BreakpointId;
- /**
- * Location this breakpoint resolved into.
- */
- actualLocation: Location;
- }
-
- interface SetBreakpointByUrlReturnType {
- /**
- * Id of the created breakpoint for further reference.
- */
- breakpointId: BreakpointId;
- /**
- * List of the locations this breakpoint resolved into upon addition.
- */
- locations: Location[];
- }
-
- interface SetBreakpointOnFunctionCallReturnType {
- /**
- * Id of the created breakpoint for further reference.
- */
- breakpointId: BreakpointId;
- }
-
- interface SetScriptSourceReturnType {
- /**
- * New stack trace in case editing has happened while VM was stopped.
- */
- callFrames?: CallFrame[];
- /**
- * Whether current call stack was modified after applying the changes.
- */
- stackChanged?: boolean;
- /**
- * Async stack trace, if any.
- */
- asyncStackTrace?: Runtime.StackTrace;
- /**
- * Async stack trace, if any.
- * @experimental
- */
- asyncStackTraceId?: Runtime.StackTraceId;
- /**
- * Exception details if any.
- */
- exceptionDetails?: Runtime.ExceptionDetails;
- }
-
- interface BreakpointResolvedEventDataType {
- /**
- * Breakpoint unique identifier.
- */
- breakpointId: BreakpointId;
- /**
- * Actual breakpoint location.
- */
- location: Location;
- }
-
- interface PausedEventDataType {
- /**
- * Call stack the virtual machine stopped on.
- */
- callFrames: CallFrame[];
- /**
- * Pause reason.
- */
- reason: string;
- /**
- * Object containing break-specific auxiliary properties.
- */
- data?: {};
- /**
- * Hit breakpoints IDs
- */
- hitBreakpoints?: string[];
- /**
- * Async stack trace, if any.
- */
- asyncStackTrace?: Runtime.StackTrace;
- /**
- * Async stack trace, if any.
- * @experimental
- */
- asyncStackTraceId?: Runtime.StackTraceId;
- /**
- * Just scheduled async call will have this stack trace as parent stack during async execution.
- * This field is available only after `Debugger.stepInto` call with `breakOnAsynCall` flag.
- * @experimental
- */
- asyncCallStackTraceId?: Runtime.StackTraceId;
- }
-
- interface ScriptFailedToParseEventDataType {
- /**
- * Identifier of the script parsed.
- */
- scriptId: Runtime.ScriptId;
- /**
- * URL or name of the script parsed (if any).
- */
- url: string;
- /**
- * Line offset of the script within the resource with given URL (for script tags).
- */
- startLine: number;
- /**
- * Column offset of the script within the resource with given URL.
- */
- startColumn: number;
- /**
- * Last line of the script.
- */
- endLine: number;
- /**
- * Length of the last line of the script.
- */
- endColumn: number;
- /**
- * Specifies script creation context.
- */
- executionContextId: Runtime.ExecutionContextId;
- /**
- * Content hash of the script.
- */
- hash: string;
- /**
- * Embedder-specific auxiliary data.
- */
- executionContextAuxData?: {};
- /**
- * URL of source map associated with script (if any).
- */
- sourceMapURL?: string;
- /**
- * True, if this script has sourceURL.
- */
- hasSourceURL?: boolean;
- /**
- * True, if this script is ES6 module.
- */
- isModule?: boolean;
- /**
- * This script length.
- */
- length?: number;
- /**
- * JavaScript top stack frame of where the script parsed event was triggered if available.
- * @experimental
- */
- stackTrace?: Runtime.StackTrace;
- }
-
- interface ScriptParsedEventDataType {
- /**
- * Identifier of the script parsed.
- */
- scriptId: Runtime.ScriptId;
- /**
- * URL or name of the script parsed (if any).
- */
- url: string;
- /**
- * Line offset of the script within the resource with given URL (for script tags).
- */
- startLine: number;
- /**
- * Column offset of the script within the resource with given URL.
- */
- startColumn: number;
- /**
- * Last line of the script.
- */
- endLine: number;
- /**
- * Length of the last line of the script.
- */
- endColumn: number;
- /**
- * Specifies script creation context.
- */
- executionContextId: Runtime.ExecutionContextId;
- /**
- * Content hash of the script.
- */
- hash: string;
- /**
- * Embedder-specific auxiliary data.
- */
- executionContextAuxData?: {};
- /**
- * True, if this script is generated as a result of the live edit operation.
- * @experimental
- */
- isLiveEdit?: boolean;
- /**
- * URL of source map associated with script (if any).
- */
- sourceMapURL?: string;
- /**
- * True, if this script has sourceURL.
- */
- hasSourceURL?: boolean;
- /**
- * True, if this script is ES6 module.
- */
- isModule?: boolean;
- /**
- * This script length.
- */
- length?: number;
- /**
- * JavaScript top stack frame of where the script parsed event was triggered if available.
- * @experimental
- */
- stackTrace?: Runtime.StackTrace;
- }
- }
-
- namespace HeapProfiler {
- /**
- * Heap snapshot object id.
- */
- type HeapSnapshotObjectId = string;
-
- /**
- * Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
- */
- interface SamplingHeapProfileNode {
- /**
- * Function location.
- */
- callFrame: Runtime.CallFrame;
- /**
- * Allocations size in bytes for the node excluding children.
- */
- selfSize: number;
- /**
- * Child nodes.
- */
- children: SamplingHeapProfileNode[];
- }
-
- /**
- * Profile.
- */
- interface SamplingHeapProfile {
- head: SamplingHeapProfileNode;
- }
-
- interface AddInspectedHeapObjectParameterType {
- /**
- * Heap snapshot object id to be accessible by means of $x command line API.
- */
- heapObjectId: HeapSnapshotObjectId;
- }
-
- interface GetHeapObjectIdParameterType {
- /**
- * Identifier of the object to get heap object id for.
- */
- objectId: Runtime.RemoteObjectId;
- }
-
- interface GetObjectByHeapObjectIdParameterType {
- objectId: HeapSnapshotObjectId;
- /**
- * Symbolic group name that can be used to release multiple objects.
- */
- objectGroup?: string;
- }
-
- interface StartSamplingParameterType {
- /**
- * Average sample interval in bytes. Poisson distribution is used for the intervals. The
- * default value is 32768 bytes.
- */
- samplingInterval?: number;
- }
-
- interface StartTrackingHeapObjectsParameterType {
- trackAllocations?: boolean;
- }
-
- interface StopTrackingHeapObjectsParameterType {
- /**
- * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken
- * when the tracking is stopped.
- */
- reportProgress?: boolean;
- }
-
- interface TakeHeapSnapshotParameterType {
- /**
- * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
- */
- reportProgress?: boolean;
- }
-
- interface GetHeapObjectIdReturnType {
- /**
- * Id of the heap snapshot object corresponding to the passed remote object id.
- */
- heapSnapshotObjectId: HeapSnapshotObjectId;
- }
-
- interface GetObjectByHeapObjectIdReturnType {
- /**
- * Evaluation result.
- */
- result: Runtime.RemoteObject;
- }
-
- interface GetSamplingProfileReturnType {
- /**
- * Return the sampling profile being collected.
- */
- profile: SamplingHeapProfile;
- }
-
- interface StopSamplingReturnType {
- /**
- * Recorded sampling heap profile.
- */
- profile: SamplingHeapProfile;
- }
-
- interface AddHeapSnapshotChunkEventDataType {
- chunk: string;
- }
-
- interface HeapStatsUpdateEventDataType {
- /**
- * An array of triplets. Each triplet describes a fragment. The first integer is the fragment
- * index, the second integer is a total count of objects for the fragment, the third integer is
- * a total size of the objects for the fragment.
- */
- statsUpdate: number[];
- }
-
- interface LastSeenObjectIdEventDataType {
- lastSeenObjectId: number;
- timestamp: number;
- }
-
- interface ReportHeapSnapshotProgressEventDataType {
- done: number;
- total: number;
- finished?: boolean;
- }
- }
-
- namespace Profiler {
- /**
- * Profile node. Holds callsite information, execution statistics and child nodes.
- */
- interface ProfileNode {
- /**
- * Unique id of the node.
- */
- id: number;
- /**
- * Function location.
- */
- callFrame: Runtime.CallFrame;
- /**
- * Number of samples where this node was on top of the call stack.
- */
- hitCount?: number;
- /**
- * Child node ids.
- */
- children?: number[];
- /**
- * The reason of being not optimized. The function may be deoptimized or marked as don't
- * optimize.
- */
- deoptReason?: string;
- /**
- * An array of source position ticks.
- */
- positionTicks?: PositionTickInfo[];
- }
-
- /**
- * Profile.
- */
- interface Profile {
- /**
- * The list of profile nodes. First item is the root node.
- */
- nodes: ProfileNode[];
- /**
- * Profiling start timestamp in microseconds.
- */
- startTime: number;
- /**
- * Profiling end timestamp in microseconds.
- */
- endTime: number;
- /**
- * Ids of samples top nodes.
- */
- samples?: number[];
- /**
- * Time intervals between adjacent samples in microseconds. The first delta is relative to the
- * profile startTime.
- */
- timeDeltas?: number[];
- }
-
- /**
- * Specifies a number of samples attributed to a certain source position.
- */
- interface PositionTickInfo {
- /**
- * Source line number (1-based).
- */
- line: number;
- /**
- * Number of samples attributed to the source line.
- */
- ticks: number;
- }
-
- /**
- * Coverage data for a source range.
- */
- interface CoverageRange {
- /**
- * JavaScript script source offset for the range start.
- */
- startOffset: number;
- /**
- * JavaScript script source offset for the range end.
- */
- endOffset: number;
- /**
- * Collected execution count of the source range.
- */
- count: number;
- }
-
- /**
- * Coverage data for a JavaScript function.
- */
- interface FunctionCoverage {
- /**
- * JavaScript function name.
- */
- functionName: string;
- /**
- * Source ranges inside the function with coverage data.
- */
- ranges: CoverageRange[];
- /**
- * Whether coverage data for this function has block granularity.
- */
- isBlockCoverage: boolean;
- }
-
- /**
- * Coverage data for a JavaScript script.
- */
- interface ScriptCoverage {
- /**
- * JavaScript script id.
- */
- scriptId: Runtime.ScriptId;
- /**
- * JavaScript script name or url.
- */
- url: string;
- /**
- * Functions contained in the script that has coverage data.
- */
- functions: FunctionCoverage[];
- }
-
- /**
- * Describes a type collected during runtime.
- * @experimental
- */
- interface TypeObject {
- /**
- * Name of a type collected with type profiling.
- */
- name: string;
- }
-
- /**
- * Source offset and types for a parameter or return value.
- * @experimental
- */
- interface TypeProfileEntry {
- /**
- * Source offset of the parameter or end of function for return values.
- */
- offset: number;
- /**
- * The types for this parameter or return value.
- */
- types: TypeObject[];
- }
-
- /**
- * Type profile data collected during runtime for a JavaScript script.
- * @experimental
- */
- interface ScriptTypeProfile {
- /**
- * JavaScript script id.
- */
- scriptId: Runtime.ScriptId;
- /**
- * JavaScript script name or url.
- */
- url: string;
- /**
- * Type profile entries for parameters and return values of the functions in the script.
- */
- entries: TypeProfileEntry[];
- }
-
- interface SetSamplingIntervalParameterType {
- /**
- * New sampling interval in microseconds.
- */
- interval: number;
- }
-
- interface StartPreciseCoverageParameterType {
- /**
- * Collect accurate call counts beyond simple 'covered' or 'not covered'.
- */
- callCount?: boolean;
- /**
- * Collect block-based coverage.
- */
- detailed?: boolean;
- }
-
- interface GetBestEffortCoverageReturnType {
- /**
- * Coverage data for the current isolate.
- */
- result: ScriptCoverage[];
- }
-
- interface StopReturnType {
- /**
- * Recorded profile.
- */
- profile: Profile;
- }
-
- interface TakePreciseCoverageReturnType {
- /**
- * Coverage data for the current isolate.
- */
- result: ScriptCoverage[];
- }
-
- interface TakeTypeProfileReturnType {
- /**
- * Type profile for all scripts since startTypeProfile() was turned on.
- */
- result: ScriptTypeProfile[];
- }
-
- interface ConsoleProfileFinishedEventDataType {
- id: string;
- /**
- * Location of console.profileEnd().
- */
- location: Debugger.Location;
- profile: Profile;
- /**
- * Profile title passed as an argument to console.profile().
- */
- title?: string;
- }
-
- interface ConsoleProfileStartedEventDataType {
- id: string;
- /**
- * Location of console.profile().
- */
- location: Debugger.Location;
- /**
- * Profile title passed as an argument to console.profile().
- */
- title?: string;
- }
- }
-
- namespace Runtime {
- /**
- * Unique script identifier.
- */
- type ScriptId = string;
-
- /**
- * Unique object identifier.
- */
- type RemoteObjectId = string;
-
- /**
- * Primitive value which cannot be JSON-stringified. Includes values `-0`, `NaN`, `Infinity`,
- * `-Infinity`, and bigint literals.
- */
- type UnserializableValue = string;
-
- /**
- * Mirror object referencing original JavaScript object.
- */
- interface RemoteObject {
- /**
- * Object type.
- */
- type: string;
- /**
- * Object subtype hint. Specified for `object` type values only.
- */
- subtype?: string;
- /**
- * Object class (constructor) name. Specified for `object` type values only.
- */
- className?: string;
- /**
- * Remote object value in case of primitive values or JSON values (if it was requested).
- */
- value?: any;
- /**
- * Primitive value which can not be JSON-stringified does not have `value`, but gets this
- * property.
- */
- unserializableValue?: UnserializableValue;
- /**
- * String representation of the object.
- */
- description?: string;
- /**
- * Unique object identifier (for non-primitive values).
- */
- objectId?: RemoteObjectId;
- /**
- * Preview containing abbreviated property values. Specified for `object` type values only.
- * @experimental
- */
- preview?: ObjectPreview;
- /**
- * @experimental
- */
- customPreview?: CustomPreview;
- }
-
- /**
- * @experimental
- */
- interface CustomPreview {
- header: string;
- hasBody: boolean;
- formatterObjectId: RemoteObjectId;
- bindRemoteObjectFunctionId: RemoteObjectId;
- configObjectId?: RemoteObjectId;
- }
-
- /**
- * Object containing abbreviated remote object value.
- * @experimental
- */
- interface ObjectPreview {
- /**
- * Object type.
- */
- type: string;
- /**
- * Object subtype hint. Specified for `object` type values only.
- */
- subtype?: string;
- /**
- * String representation of the object.
- */
- description?: string;
- /**
- * True iff some of the properties or entries of the original object did not fit.
- */
- overflow: boolean;
- /**
- * List of the properties.
- */
- properties: PropertyPreview[];
- /**
- * List of the entries. Specified for `map` and `set` subtype values only.
- */
- entries?: EntryPreview[];
- }
-
- /**
- * @experimental
- */
- interface PropertyPreview {
- /**
- * Property name.
- */
- name: string;
- /**
- * Object type. Accessor means that the property itself is an accessor property.
- */
- type: string;
- /**
- * User-friendly property value string.
- */
- value?: string;
- /**
- * Nested value preview.
- */
- valuePreview?: ObjectPreview;
- /**
- * Object subtype hint. Specified for `object` type values only.
- */
- subtype?: string;
- }
-
- /**
- * @experimental
- */
- interface EntryPreview {
- /**
- * Preview of the key. Specified for map-like collection entries.
- */
- key?: ObjectPreview;
- /**
- * Preview of the value.
- */
- value: ObjectPreview;
- }
-
- /**
- * Object property descriptor.
- */
- interface PropertyDescriptor {
- /**
- * Property name or symbol description.
- */
- name: string;
- /**
- * The value associated with the property.
- */
- value?: RemoteObject;
- /**
- * True if the value associated with the property may be changed (data descriptors only).
- */
- writable?: boolean;
- /**
- * A function which serves as a getter for the property, or `undefined` if there is no getter
- * (accessor descriptors only).
- */
- get?: RemoteObject;
- /**
- * A function which serves as a setter for the property, or `undefined` if there is no setter
- * (accessor descriptors only).
- */
- set?: RemoteObject;
- /**
- * True if the type of this property descriptor may be changed and if the property may be
- * deleted from the corresponding object.
- */
- configurable: boolean;
- /**
- * True if this property shows up during enumeration of the properties on the corresponding
- * object.
- */
- enumerable: boolean;
- /**
- * True if the result was thrown during the evaluation.
- */
- wasThrown?: boolean;
- /**
- * True if the property is owned for the object.
- */
- isOwn?: boolean;
- /**
- * Property symbol object, if the property is of the `symbol` type.
- */
- symbol?: RemoteObject;
- }
-
- /**
- * Object internal property descriptor. This property isn't normally visible in JavaScript code.
- */
- interface InternalPropertyDescriptor {
- /**
- * Conventional property name.
- */
- name: string;
- /**
- * The value associated with the property.
- */
- value?: RemoteObject;
- }
-
- /**
- * Represents function call argument. Either remote object id `objectId`, primitive `value`,
- * unserializable primitive value or neither of (for undefined) them should be specified.
- */
- interface CallArgument {
- /**
- * Primitive value or serializable javascript object.
- */
- value?: any;
- /**
- * Primitive value which can not be JSON-stringified.
- */
- unserializableValue?: UnserializableValue;
- /**
- * Remote object handle.
- */
- objectId?: RemoteObjectId;
- }
-
- /**
- * Id of an execution context.
- */
- type ExecutionContextId = number;
-
- /**
- * Description of an isolated world.
- */
- interface ExecutionContextDescription {
- /**
- * Unique id of the execution context. It can be used to specify in which execution context
- * script evaluation should be performed.
- */
- id: ExecutionContextId;
- /**
- * Execution context origin.
- */
- origin: string;
- /**
- * Human readable name describing given context.
- */
- name: string;
- /**
- * Embedder-specific auxiliary data.
- */
- auxData?: {};
- }
-
- /**
- * Detailed information about exception (or error) that was thrown during script compilation or
- * execution.
- */
- interface ExceptionDetails {
- /**
- * Exception id.
- */
- exceptionId: number;
- /**
- * Exception text, which should be used together with exception object when available.
- */
- text: string;
- /**
- * Line number of the exception location (0-based).
- */
- lineNumber: number;
- /**
- * Column number of the exception location (0-based).
- */
- columnNumber: number;
- /**
- * Script ID of the exception location.
- */
- scriptId?: ScriptId;
- /**
- * URL of the exception location, to be used when the script was not reported.
- */
- url?: string;
- /**
- * JavaScript stack trace if available.
- */
- stackTrace?: StackTrace;
- /**
- * Exception object if available.
- */
- exception?: RemoteObject;
- /**
- * Identifier of the context where exception happened.
- */
- executionContextId?: ExecutionContextId;
- }
-
- /**
- * Number of milliseconds since epoch.
- */
- type Timestamp = number;
-
- /**
- * Number of milliseconds.
- */
- type TimeDelta = number;
-
- /**
- * Stack entry for runtime errors and assertions.
- */
- interface CallFrame {
- /**
- * JavaScript function name.
- */
- functionName: string;
- /**
- * JavaScript script id.
- */
- scriptId: ScriptId;
- /**
- * JavaScript script name or url.
- */
- url: string;
- /**
- * JavaScript script line number (0-based).
- */
- lineNumber: number;
- /**
- * JavaScript script column number (0-based).
- */
- columnNumber: number;
- }
-
- /**
- * Call frames for assertions or error messages.
- */
- interface StackTrace {
- /**
- * String label of this stack trace. For async traces this may be a name of the function that
- * initiated the async call.
- */
- description?: string;
- /**
- * JavaScript function name.
- */
- callFrames: CallFrame[];
- /**
- * Asynchronous JavaScript stack trace that preceded this stack, if available.
- */
- parent?: StackTrace;
- /**
- * Asynchronous JavaScript stack trace that preceded this stack, if available.
- * @experimental
- */
- parentId?: StackTraceId;
- }
-
- /**
- * Unique identifier of current debugger.
- * @experimental
- */
- type UniqueDebuggerId = string;
-
- /**
- * If `debuggerId` is set stack trace comes from another debugger and can be resolved there. This
- * allows to track cross-debugger calls. See `Runtime.StackTrace` and `Debugger.paused` for usages.
- * @experimental
- */
- interface StackTraceId {
- id: string;
- debuggerId?: UniqueDebuggerId;
- }
-
- interface AwaitPromiseParameterType {
- /**
- * Identifier of the promise.
- */
- promiseObjectId: RemoteObjectId;
- /**
- * Whether the result is expected to be a JSON object that should be sent by value.
- */
- returnByValue?: boolean;
- /**
- * Whether preview should be generated for the result.
- */
- generatePreview?: boolean;
- }
-
- interface CallFunctionOnParameterType {
- /**
- * Declaration of the function to call.
- */
- functionDeclaration: string;
- /**
- * Identifier of the object to call function on. Either objectId or executionContextId should
- * be specified.
- */
- objectId?: RemoteObjectId;
- /**
- * Call arguments. All call arguments must belong to the same JavaScript world as the target
- * object.
- */
- arguments?: CallArgument[];
- /**
- * In silent mode exceptions thrown during evaluation are not reported and do not pause
- * execution. Overrides `setPauseOnException` state.
- */
- silent?: boolean;
- /**
- * Whether the result is expected to be a JSON object which should be sent by value.
- */
- returnByValue?: boolean;
- /**
- * Whether preview should be generated for the result.
- * @experimental
- */
- generatePreview?: boolean;
- /**
- * Whether execution should be treated as initiated by user in the UI.
- */
- userGesture?: boolean;
- /**
- * Whether execution should `await` for resulting value and return once awaited promise is
- * resolved.
- */
- awaitPromise?: boolean;
- /**
- * Specifies execution context which global object will be used to call function on. Either
- * executionContextId or objectId should be specified.
- */
- executionContextId?: ExecutionContextId;
- /**
- * Symbolic group name that can be used to release multiple objects. If objectGroup is not
- * specified and objectId is, objectGroup will be inherited from object.
- */
- objectGroup?: string;
- }
-
- interface CompileScriptParameterType {
- /**
- * Expression to compile.
- */
- expression: string;
- /**
- * Source url to be set for the script.
- */
- sourceURL: string;
- /**
- * Specifies whether the compiled script should be persisted.
- */
- persistScript: boolean;
- /**
- * Specifies in which execution context to perform script run. If the parameter is omitted the
- * evaluation will be performed in the context of the inspected page.
- */
- executionContextId?: ExecutionContextId;
- }
-
- interface EvaluateParameterType {
- /**
- * Expression to evaluate.
- */
- expression: string;
- /**
- * Symbolic group name that can be used to release multiple objects.
- */
- objectGroup?: string;
- /**
- * Determines whether Command Line API should be available during the evaluation.
- */
- includeCommandLineAPI?: boolean;
- /**
- * In silent mode exceptions thrown during evaluation are not reported and do not pause
- * execution. Overrides `setPauseOnException` state.
- */
- silent?: boolean;
- /**
- * Specifies in which execution context to perform evaluation. If the parameter is omitted the
- * evaluation will be performed in the context of the inspected page.
- */
- contextId?: ExecutionContextId;
- /**
- * Whether the result is expected to be a JSON object that should be sent by value.
- */
- returnByValue?: boolean;
- /**
- * Whether preview should be generated for the result.
- * @experimental
- */
- generatePreview?: boolean;
- /**
- * Whether execution should be treated as initiated by user in the UI.
- */
- userGesture?: boolean;
- /**
- * Whether execution should `await` for resulting value and return once awaited promise is
- * resolved.
- */
- awaitPromise?: boolean;
- /**
- * Whether to throw an exception if side effect cannot be ruled out during evaluation.
- * @experimental
- */
- throwOnSideEffect?: boolean;
- /**
- * Terminate execution after timing out (number of milliseconds).
- * @experimental
- */
- timeout?: TimeDelta;
- }
-
- interface GetPropertiesParameterType {
- /**
- * Identifier of the object to return properties for.
- */
- objectId: RemoteObjectId;
- /**
- * If true, returns properties belonging only to the element itself, not to its prototype
- * chain.
- */
- ownProperties?: boolean;
- /**
- * If true, returns accessor properties (with getter/setter) only; internal properties are not
- * returned either.
- * @experimental
- */
- accessorPropertiesOnly?: boolean;
- /**
- * Whether preview should be generated for the results.
- * @experimental
- */
- generatePreview?: boolean;
- }
-
- interface GlobalLexicalScopeNamesParameterType {
- /**
- * Specifies in which execution context to lookup global scope variables.
- */
- executionContextId?: ExecutionContextId;
- }
-
- interface QueryObjectsParameterType {
- /**
- * Identifier of the prototype to return objects for.
- */
- prototypeObjectId: RemoteObjectId;
- /**
- * Symbolic group name that can be used to release the results.
- */
- objectGroup?: string;
- }
-
- interface ReleaseObjectParameterType {
- /**
- * Identifier of the object to release.
- */
- objectId: RemoteObjectId;
- }
-
- interface ReleaseObjectGroupParameterType {
- /**
- * Symbolic object group name.
- */
- objectGroup: string;
- }
-
- interface RunScriptParameterType {
- /**
- * Id of the script to run.
- */
- scriptId: ScriptId;
- /**
- * Specifies in which execution context to perform script run. If the parameter is omitted the
- * evaluation will be performed in the context of the inspected page.
- */
- executionContextId?: ExecutionContextId;
- /**
- * Symbolic group name that can be used to release multiple objects.
- */
- objectGroup?: string;
- /**
- * In silent mode exceptions thrown during evaluation are not reported and do not pause
- * execution. Overrides `setPauseOnException` state.
- */
- silent?: boolean;
- /**
- * Determines whether Command Line API should be available during the evaluation.
- */
- includeCommandLineAPI?: boolean;
- /**
- * Whether the result is expected to be a JSON object which should be sent by value.
- */
- returnByValue?: boolean;
- /**
- * Whether preview should be generated for the result.
- */
- generatePreview?: boolean;
- /**
- * Whether execution should `await` for resulting value and return once awaited promise is
- * resolved.
- */
- awaitPromise?: boolean;
- }
-
- interface SetAsyncCallStackDepthParameterType {
- /**
- * Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async
- * call stacks (default).
- */
- maxDepth: number;
- }
-
- interface SetCustomObjectFormatterEnabledParameterType {
- enabled: boolean;
- }
-
- interface SetMaxCallStackSizeToCaptureParameterType {
- size: number;
- }
-
- interface AddBindingParameterType {
- name: string;
- executionContextId?: ExecutionContextId;
- }
-
- interface RemoveBindingParameterType {
- name: string;
- }
-
- interface AwaitPromiseReturnType {
- /**
- * Promise result. Will contain rejected value if promise was rejected.
- */
- result: RemoteObject;
- /**
- * Exception details if stack strace is available.
- */
- exceptionDetails?: ExceptionDetails;
- }
-
- interface CallFunctionOnReturnType {
- /**
- * Call result.
- */
- result: RemoteObject;
- /**
- * Exception details.
- */
- exceptionDetails?: ExceptionDetails;
- }
-
- interface CompileScriptReturnType {
- /**
- * Id of the script.
- */
- scriptId?: ScriptId;
- /**
- * Exception details.
- */
- exceptionDetails?: ExceptionDetails;
- }
-
- interface EvaluateReturnType {
- /**
- * Evaluation result.
- */
- result: RemoteObject;
- /**
- * Exception details.
- */
- exceptionDetails?: ExceptionDetails;
- }
-
- interface GetIsolateIdReturnType {
- /**
- * The isolate id.
- */
- id: string;
- }
-
- interface GetHeapUsageReturnType {
- /**
- * Used heap size in bytes.
- */
- usedSize: number;
- /**
- * Allocated heap size in bytes.
- */
- totalSize: number;
- }
-
- interface GetPropertiesReturnType {
- /**
- * Object properties.
- */
- result: PropertyDescriptor[];
- /**
- * Internal object properties (only of the element itself).
- */
- internalProperties?: InternalPropertyDescriptor[];
- /**
- * Exception details.
- */
- exceptionDetails?: ExceptionDetails;
- }
-
- interface GlobalLexicalScopeNamesReturnType {
- names: string[];
- }
-
- interface QueryObjectsReturnType {
- /**
- * Array with objects.
- */
- objects: RemoteObject;
- }
-
- interface RunScriptReturnType {
- /**
- * Run result.
- */
- result: RemoteObject;
- /**
- * Exception details.
- */
- exceptionDetails?: ExceptionDetails;
- }
-
- interface BindingCalledEventDataType {
- name: string;
- payload: string;
- /**
- * Identifier of the context where the call was made.
- */
- executionContextId: ExecutionContextId;
- }
-
- interface ConsoleAPICalledEventDataType {
- /**
- * Type of the call.
- */
- type: string;
- /**
- * Call arguments.
- */
- args: RemoteObject[];
- /**
- * Identifier of the context where the call was made.
- */
- executionContextId: ExecutionContextId;
- /**
- * Call timestamp.
- */
- timestamp: Timestamp;
- /**
- * Stack trace captured when the call was made.
- */
- stackTrace?: StackTrace;
- /**
- * Console context descriptor for calls on non-default console context (not console.*):
- * 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call
- * on named context.
- * @experimental
- */
- context?: string;
- }
-
- interface ExceptionRevokedEventDataType {
- /**
- * Reason describing why exception was revoked.
- */
- reason: string;
- /**
- * The id of revoked exception, as reported in `exceptionThrown`.
- */
- exceptionId: number;
- }
-
- interface ExceptionThrownEventDataType {
- /**
- * Timestamp of the exception.
- */
- timestamp: Timestamp;
- exceptionDetails: ExceptionDetails;
- }
-
- interface ExecutionContextCreatedEventDataType {
- /**
- * A newly created execution context.
- */
- context: ExecutionContextDescription;
- }
-
- interface ExecutionContextDestroyedEventDataType {
- /**
- * Id of the destroyed context
- */
- executionContextId: ExecutionContextId;
- }
-
- interface InspectRequestedEventDataType {
- object: RemoteObject;
- hints: {};
- }
- }
-
- namespace Schema {
- /**
- * Description of the protocol domain.
- */
- interface Domain {
- /**
- * Domain name.
- */
- name: string;
- /**
- * Domain version.
- */
- version: string;
- }
-
- interface GetDomainsReturnType {
- /**
- * List of supported domains.
- */
- domains: Domain[];
- }
- }
-
- namespace NodeTracing {
- interface TraceConfig {
- /**
- * Controls how the trace buffer stores data.
- */
- recordMode?: string;
- /**
- * Included category filters.
- */
- includedCategories: string[];
- }
-
- interface StartParameterType {
- traceConfig: TraceConfig;
- }
-
- interface GetCategoriesReturnType {
- /**
- * A list of supported tracing categories.
- */
- categories: string[];
- }
-
- interface DataCollectedEventDataType {
- value: Array<{}>;
- }
- }
-
- namespace NodeWorker {
- type WorkerID = string;
-
- /**
- * Unique identifier of attached debugging session.
- */
- type SessionID = string;
-
- interface WorkerInfo {
- workerId: WorkerID;
- type: string;
- title: string;
- url: string;
- }
-
- interface SendMessageToWorkerParameterType {
- message: string;
- /**
- * Identifier of the session.
- */
- sessionId: SessionID;
- }
-
- interface EnableParameterType {
- /**
- * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger`
- * message to run them.
- */
- waitForDebuggerOnStart: boolean;
- }
-
- interface AttachedToWorkerEventDataType {
- /**
- * Identifier assigned to the session used to send/receive messages.
- */
- sessionId: SessionID;
- workerInfo: WorkerInfo;
- waitingForDebugger: boolean;
- }
-
- interface DetachedFromWorkerEventDataType {
- /**
- * Detached session identifier.
- */
- sessionId: SessionID;
- }
-
- interface ReceivedMessageFromWorkerEventDataType {
- /**
- * Identifier of a session which sends a message.
- */
- sessionId: SessionID;
- message: string;
- }
- }
-
- /**
- * The inspector.Session is used for dispatching messages to the V8 inspector back-end and receiving message responses and notifications.
- */
- class Session extends EventEmitter {
- /**
- * Create a new instance of the inspector.Session class.
- * The inspector session needs to be connected through session.connect() before the messages can be dispatched to the inspector backend.
- */
- constructor();
-
- /**
- * Connects a session to the inspector back-end.
- * An exception will be thrown if there is already a connected session established either
- * through the API or by a front-end connected to the Inspector WebSocket port.
- */
- connect(): void;
-
- /**
- * Immediately close the session. All pending message callbacks will be called with an error.
- * session.connect() will need to be called to be able to send messages again.
- * Reconnected session will lose all inspector state, such as enabled agents or configured breakpoints.
- */
- disconnect(): void;
-
- /**
- * Posts a message to the inspector back-end. callback will be notified when a response is received.
- * callback is a function that accepts two optional arguments - error and message-specific result.
- */
- post(method: string, params?: {}, callback?: (err: Error | null, params?: {}) => void): void;
- post(method: string, callback?: (err: Error | null, params?: {}) => void): void;
-
- /**
- * Does nothing.
- */
- post(method: "Console.clearMessages", callback?: (err: Error | null) => void): void;
-
- /**
- * Disables console domain, prevents further console messages from being reported to the client.
- */
- post(method: "Console.disable", callback?: (err: Error | null) => void): void;
-
- /**
- * Enables console domain, sends the messages collected so far to the client by means of the
- * `messageAdded` notification.
- */
- post(method: "Console.enable", callback?: (err: Error | null) => void): void;
-
- /**
- * Continues execution until specific location is reached.
- */
- post(method: "Debugger.continueToLocation", params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Debugger.continueToLocation", callback?: (err: Error | null) => void): void;
-
- /**
- * Disables debugger for given page.
- */
- post(method: "Debugger.disable", callback?: (err: Error | null) => void): void;
-
- /**
- * Enables debugger for the given page. Clients should not assume that the debugging has been
- * enabled until the result for this command is received.
- */
- post(method: "Debugger.enable", callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void;
-
- /**
- * Evaluates expression on a given call frame.
- */
- post(method: "Debugger.evaluateOnCallFrame", params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
- post(method: "Debugger.evaluateOnCallFrame", callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
-
- /**
- * Returns possible locations for breakpoint. scriptId in start and end range locations should be
- * the same.
- */
- post(
- method: "Debugger.getPossibleBreakpoints",
- params?: Debugger.GetPossibleBreakpointsParameterType,
- callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void
- ): void;
- post(method: "Debugger.getPossibleBreakpoints", callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void;
-
- /**
- * Returns source for the script with given id.
- */
- post(method: "Debugger.getScriptSource", params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
- post(method: "Debugger.getScriptSource", callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
-
- /**
- * Returns stack trace with given `stackTraceId`.
- * @experimental
- */
- post(method: "Debugger.getStackTrace", params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
- post(method: "Debugger.getStackTrace", callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
-
- /**
- * Stops on the next JavaScript statement.
- */
- post(method: "Debugger.pause", callback?: (err: Error | null) => void): void;
-
- /**
- * @experimental
- */
- post(method: "Debugger.pauseOnAsyncCall", params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Debugger.pauseOnAsyncCall", callback?: (err: Error | null) => void): void;
-
- /**
- * Removes JavaScript breakpoint.
- */
- post(method: "Debugger.removeBreakpoint", params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Debugger.removeBreakpoint", callback?: (err: Error | null) => void): void;
-
- /**
- * Restarts particular call frame from the beginning.
- */
- post(method: "Debugger.restartFrame", params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
- post(method: "Debugger.restartFrame", callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
-
- /**
- * Resumes JavaScript execution.
- */
- post(method: "Debugger.resume", callback?: (err: Error | null) => void): void;
-
- /**
- * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and
- * Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled
- * before next pause. Returns success when async task is actually scheduled, returns error if no
- * task were scheduled or another scheduleStepIntoAsync was called.
- * @experimental
- */
- post(method: "Debugger.scheduleStepIntoAsync", callback?: (err: Error | null) => void): void;
-
- /**
- * Searches for given string in script content.
- */
- post(method: "Debugger.searchInContent", params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
- post(method: "Debugger.searchInContent", callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
-
- /**
- * Enables or disables async call stacks tracking.
- */
- post(method: "Debugger.setAsyncCallStackDepth", params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Debugger.setAsyncCallStackDepth", callback?: (err: Error | null) => void): void;
-
- /**
- * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in
- * scripts with url matching one of the patterns. VM will try to leave blackboxed script by
- * performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
- * @experimental
- */
- post(method: "Debugger.setBlackboxPatterns", params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Debugger.setBlackboxPatterns", callback?: (err: Error | null) => void): void;
-
- /**
- * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted
- * scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
- * Positions array contains positions where blackbox state is changed. First interval isn't
- * blackboxed. Array should be sorted.
- * @experimental
- */
- post(method: "Debugger.setBlackboxedRanges", params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Debugger.setBlackboxedRanges", callback?: (err: Error | null) => void): void;
-
- /**
- * Sets JavaScript breakpoint at a given location.
- */
- post(method: "Debugger.setBreakpoint", params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
- post(method: "Debugger.setBreakpoint", callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
-
- /**
- * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this
- * command is issued, all existing parsed scripts will have breakpoints resolved and returned in
- * `locations` property. Further matching script parsing will result in subsequent
- * `breakpointResolved` events issued. This logical breakpoint will survive page reloads.
- */
- post(method: "Debugger.setBreakpointByUrl", params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
- post(method: "Debugger.setBreakpointByUrl", callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
-
- /**
- * Sets JavaScript breakpoint before each call to the given function.
- * If another function was created from the same source as a given one,
- * calling it will also trigger the breakpoint.
- * @experimental
- */
- post(
- method: "Debugger.setBreakpointOnFunctionCall",
- params?: Debugger.SetBreakpointOnFunctionCallParameterType,
- callback?: (err: Error | null, params: Debugger.SetBreakpointOnFunctionCallReturnType) => void
- ): void;
- post(method: "Debugger.setBreakpointOnFunctionCall", callback?: (err: Error | null, params: Debugger.SetBreakpointOnFunctionCallReturnType) => void): void;
-
- /**
- * Activates / deactivates all breakpoints on the page.
- */
- post(method: "Debugger.setBreakpointsActive", params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Debugger.setBreakpointsActive", callback?: (err: Error | null) => void): void;
-
- /**
- * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or
- * no exceptions. Initial pause on exceptions state is `none`.
- */
- post(method: "Debugger.setPauseOnExceptions", params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Debugger.setPauseOnExceptions", callback?: (err: Error | null) => void): void;
-
- /**
- * Changes return value in top frame. Available only at return break position.
- * @experimental
- */
- post(method: "Debugger.setReturnValue", params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Debugger.setReturnValue", callback?: (err: Error | null) => void): void;
-
- /**
- * Edits JavaScript source live.
- */
- post(method: "Debugger.setScriptSource", params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
- post(method: "Debugger.setScriptSource", callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
-
- /**
- * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
- */
- post(method: "Debugger.setSkipAllPauses", params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Debugger.setSkipAllPauses", callback?: (err: Error | null) => void): void;
-
- /**
- * Changes value of variable in a callframe. Object-based scopes are not supported and must be
- * mutated manually.
- */
- post(method: "Debugger.setVariableValue", params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Debugger.setVariableValue", callback?: (err: Error | null) => void): void;
-
- /**
- * Steps into the function call.
- */
- post(method: "Debugger.stepInto", params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Debugger.stepInto", callback?: (err: Error | null) => void): void;
-
- /**
- * Steps out of the function call.
- */
- post(method: "Debugger.stepOut", callback?: (err: Error | null) => void): void;
-
- /**
- * Steps over the statement.
- */
- post(method: "Debugger.stepOver", callback?: (err: Error | null) => void): void;
-
- /**
- * Enables console to refer to the node with given id via $x (see Command Line API for more details
- * $x functions).
- */
- post(method: "HeapProfiler.addInspectedHeapObject", params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void;
- post(method: "HeapProfiler.addInspectedHeapObject", callback?: (err: Error | null) => void): void;
-
- post(method: "HeapProfiler.collectGarbage", callback?: (err: Error | null) => void): void;
-
- post(method: "HeapProfiler.disable", callback?: (err: Error | null) => void): void;
-
- post(method: "HeapProfiler.enable", callback?: (err: Error | null) => void): void;
-
- post(method: "HeapProfiler.getHeapObjectId", params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
- post(method: "HeapProfiler.getHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
-
- post(
- method: "HeapProfiler.getObjectByHeapObjectId",
- params?: HeapProfiler.GetObjectByHeapObjectIdParameterType,
- callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void
- ): void;
- post(method: "HeapProfiler.getObjectByHeapObjectId", callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void;
-
- post(method: "HeapProfiler.getSamplingProfile", callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
-
- post(method: "HeapProfiler.startSampling", params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void;
- post(method: "HeapProfiler.startSampling", callback?: (err: Error | null) => void): void;
-
- post(method: "HeapProfiler.startTrackingHeapObjects", params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
- post(method: "HeapProfiler.startTrackingHeapObjects", callback?: (err: Error | null) => void): void;
-
- post(method: "HeapProfiler.stopSampling", callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
-
- post(method: "HeapProfiler.stopTrackingHeapObjects", params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
- post(method: "HeapProfiler.stopTrackingHeapObjects", callback?: (err: Error | null) => void): void;
-
- post(method: "HeapProfiler.takeHeapSnapshot", params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
- post(method: "HeapProfiler.takeHeapSnapshot", callback?: (err: Error | null) => void): void;
-
- post(method: "Profiler.disable", callback?: (err: Error | null) => void): void;
-
- post(method: "Profiler.enable", callback?: (err: Error | null) => void): void;
-
- /**
- * Collect coverage data for the current isolate. The coverage data may be incomplete due to
- * garbage collection.
- */
- post(method: "Profiler.getBestEffortCoverage", callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void;
-
- /**
- * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
- */
- post(method: "Profiler.setSamplingInterval", params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Profiler.setSamplingInterval", callback?: (err: Error | null) => void): void;
-
- post(method: "Profiler.start", callback?: (err: Error | null) => void): void;
-
- /**
- * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code
- * coverage may be incomplete. Enabling prevents running optimized code and resets execution
- * counters.
- */
- post(method: "Profiler.startPreciseCoverage", params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Profiler.startPreciseCoverage", callback?: (err: Error | null) => void): void;
-
- /**
- * Enable type profile.
- * @experimental
- */
- post(method: "Profiler.startTypeProfile", callback?: (err: Error | null) => void): void;
-
- post(method: "Profiler.stop", callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void;
-
- /**
- * Disable precise code coverage. Disabling releases unnecessary execution count records and allows
- * executing optimized code.
- */
- post(method: "Profiler.stopPreciseCoverage", callback?: (err: Error | null) => void): void;
-
- /**
- * Disable type profile. Disabling releases type profile data collected so far.
- * @experimental
- */
- post(method: "Profiler.stopTypeProfile", callback?: (err: Error | null) => void): void;
-
- /**
- * Collect coverage data for the current isolate, and resets execution counters. Precise code
- * coverage needs to have started.
- */
- post(method: "Profiler.takePreciseCoverage", callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void;
-
- /**
- * Collect type profile.
- * @experimental
- */
- post(method: "Profiler.takeTypeProfile", callback?: (err: Error | null, params: Profiler.TakeTypeProfileReturnType) => void): void;
-
- /**
- * Add handler to promise with given promise object id.
- */
- post(method: "Runtime.awaitPromise", params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
- post(method: "Runtime.awaitPromise", callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
-
- /**
- * Calls function with given declaration on the given object. Object group of the result is
- * inherited from the target object.
- */
- post(method: "Runtime.callFunctionOn", params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
- post(method: "Runtime.callFunctionOn", callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
-
- /**
- * Compiles expression.
- */
- post(method: "Runtime.compileScript", params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
- post(method: "Runtime.compileScript", callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
-
- /**
- * Disables reporting of execution contexts creation.
- */
- post(method: "Runtime.disable", callback?: (err: Error | null) => void): void;
-
- /**
- * Discards collected exceptions and console API calls.
- */
- post(method: "Runtime.discardConsoleEntries", callback?: (err: Error | null) => void): void;
-
- /**
- * Enables reporting of execution contexts creation by means of `executionContextCreated` event.
- * When the reporting gets enabled the event will be sent immediately for each existing execution
- * context.
- */
- post(method: "Runtime.enable", callback?: (err: Error | null) => void): void;
-
- /**
- * Evaluates expression on global object.
- */
- post(method: "Runtime.evaluate", params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
- post(method: "Runtime.evaluate", callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
-
- /**
- * Returns the isolate id.
- * @experimental
- */
- post(method: "Runtime.getIsolateId", callback?: (err: Error | null, params: Runtime.GetIsolateIdReturnType) => void): void;
-
- /**
- * Returns the JavaScript heap usage.
- * It is the total usage of the corresponding isolate not scoped to a particular Runtime.
- * @experimental
- */
- post(method: "Runtime.getHeapUsage", callback?: (err: Error | null, params: Runtime.GetHeapUsageReturnType) => void): void;
-
- /**
- * Returns properties of a given object. Object group of the result is inherited from the target
- * object.
- */
- post(method: "Runtime.getProperties", params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
- post(method: "Runtime.getProperties", callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
-
- /**
- * Returns all let, const and class variables from global scope.
- */
- post(
- method: "Runtime.globalLexicalScopeNames",
- params?: Runtime.GlobalLexicalScopeNamesParameterType,
- callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void
- ): void;
- post(method: "Runtime.globalLexicalScopeNames", callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void;
-
- post(method: "Runtime.queryObjects", params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
- post(method: "Runtime.queryObjects", callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
-
- /**
- * Releases remote object with given id.
- */
- post(method: "Runtime.releaseObject", params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Runtime.releaseObject", callback?: (err: Error | null) => void): void;
-
- /**
- * Releases all remote objects that belong to a given group.
- */
- post(method: "Runtime.releaseObjectGroup", params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Runtime.releaseObjectGroup", callback?: (err: Error | null) => void): void;
-
- /**
- * Tells inspected instance to run if it was waiting for debugger to attach.
- */
- post(method: "Runtime.runIfWaitingForDebugger", callback?: (err: Error | null) => void): void;
-
- /**
- * Runs script with given id in a given context.
- */
- post(method: "Runtime.runScript", params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
- post(method: "Runtime.runScript", callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
-
- /**
- * Enables or disables async call stacks tracking.
- */
- post(method: "Runtime.setAsyncCallStackDepth", params?: Runtime.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Runtime.setAsyncCallStackDepth", callback?: (err: Error | null) => void): void;
-
- /**
- * @experimental
- */
- post(method: "Runtime.setCustomObjectFormatterEnabled", params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Runtime.setCustomObjectFormatterEnabled", callback?: (err: Error | null) => void): void;
-
- /**
- * @experimental
- */
- post(method: "Runtime.setMaxCallStackSizeToCapture", params?: Runtime.SetMaxCallStackSizeToCaptureParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Runtime.setMaxCallStackSizeToCapture", callback?: (err: Error | null) => void): void;
-
- /**
- * Terminate current or next JavaScript execution.
- * Will cancel the termination when the outer-most script execution ends.
- * @experimental
- */
- post(method: "Runtime.terminateExecution", callback?: (err: Error | null) => void): void;
-
- /**
- * If executionContextId is empty, adds binding with the given name on the
- * global objects of all inspected contexts, including those created later,
- * bindings survive reloads.
- * If executionContextId is specified, adds binding only on global object of
- * given execution context.
- * Binding function takes exactly one argument, this argument should be string,
- * in case of any other input, function throws an exception.
- * Each binding function call produces Runtime.bindingCalled notification.
- * @experimental
- */
- post(method: "Runtime.addBinding", params?: Runtime.AddBindingParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Runtime.addBinding", callback?: (err: Error | null) => void): void;
-
- /**
- * This method does not remove binding function from global object but
- * unsubscribes current runtime agent from Runtime.bindingCalled notifications.
- * @experimental
- */
- post(method: "Runtime.removeBinding", params?: Runtime.RemoveBindingParameterType, callback?: (err: Error | null) => void): void;
- post(method: "Runtime.removeBinding", callback?: (err: Error | null) => void): void;
-
- /**
- * Returns supported domains.
- */
- post(method: "Schema.getDomains", callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void;
-
- /**
- * Gets supported tracing categories.
- */
- post(method: "NodeTracing.getCategories", callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
-
- /**
- * Start trace events collection.
- */
- post(method: "NodeTracing.start", params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
- post(method: "NodeTracing.start", callback?: (err: Error | null) => void): void;
-
- /**
- * Stop trace events collection. Remaining collected events will be sent as a sequence of
- * dataCollected events followed by tracingComplete event.
- */
- post(method: "NodeTracing.stop", callback?: (err: Error | null) => void): void;
-
- /**
- * Sends protocol message over session with given id.
- */
- post(method: "NodeWorker.sendMessageToWorker", params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
- post(method: "NodeWorker.sendMessageToWorker", callback?: (err: Error | null) => void): void;
-
- /**
- * Instructs the inspector to attach to running workers. Will also attach to new workers
- * as they start
- */
- post(method: "NodeWorker.enable", params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
- post(method: "NodeWorker.enable", callback?: (err: Error | null) => void): void;
-
- /**
- * Detaches from all running workers and disables attaching to new workers as they are started.
- */
- post(method: "NodeWorker.disable", callback?: (err: Error | null) => void): void;
-
- // Events
-
- addListener(event: string, listener: (...args: any[]) => void): this;
-
- /**
- * Emitted when any notification from the V8 Inspector is received.
- */
- addListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
-
- /**
- * Issued when new console message is added.
- */
- addListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
-
- /**
- * Fired when breakpoint is resolved to an actual script and location.
- */
- addListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
-
- /**
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
- */
- addListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
-
- /**
- * Fired when the virtual machine resumed execution.
- */
- addListener(event: "Debugger.resumed", listener: () => void): this;
-
- /**
- * Fired when virtual machine fails to parse the script.
- */
- addListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
-
- /**
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected
- * scripts upon enabling debugger.
- */
- addListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
-
- addListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
-
- /**
- * If heap objects tracking has been started then backend may send update for one or more fragments
- */
- addListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
-
- /**
- * If heap objects tracking has been started then backend regularly sends a current value for last
- * seen object id and corresponding timestamp. If the were changes in the heap since last event
- * then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
- */
- addListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
-
- addListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
- addListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
- addListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
-
- /**
- * Sent when new profile recording is started using console.profile() call.
- */
- addListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
-
- /**
- * Notification is issued every time when binding is called.
- * @experimental
- */
- addListener(event: "Runtime.bindingCalled", listener: (message: InspectorNotification<Runtime.BindingCalledEventDataType>) => void): this;
-
- /**
- * Issued when console API was called.
- */
- addListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
-
- /**
- * Issued when unhandled exception was revoked.
- */
- addListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
-
- /**
- * Issued when exception was thrown and unhandled.
- */
- addListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
-
- /**
- * Issued when new execution context is created.
- */
- addListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
-
- /**
- * Issued when execution context is destroyed.
- */
- addListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
-
- /**
- * Issued when all executionContexts were cleared in browser
- */
- addListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
-
- /**
- * Issued when object should be inspected (for example, as a result of inspect() command line API
- * call).
- */
- addListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
-
- /**
- * Contains an bucket of collected trace events.
- */
- addListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
-
- /**
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
- * delivered via dataCollected events.
- */
- addListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
-
- /**
- * Issued when attached to a worker.
- */
- addListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
-
- /**
- * Issued when detached from the worker.
- */
- addListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
-
- /**
- * Notifies about a new protocol message received from the session
- * (session ID is provided in attachedToWorker notification).
- */
- addListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
-
- emit(event: string | symbol, ...args: any[]): boolean;
- emit(event: "inspectorNotification", message: InspectorNotification<{}>): boolean;
- emit(event: "Console.messageAdded", message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
- emit(event: "Debugger.breakpointResolved", message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>): boolean;
- emit(event: "Debugger.paused", message: InspectorNotification<Debugger.PausedEventDataType>): boolean;
- emit(event: "Debugger.resumed"): boolean;
- emit(event: "Debugger.scriptFailedToParse", message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): boolean;
- emit(event: "Debugger.scriptParsed", message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
- emit(event: "HeapProfiler.addHeapSnapshotChunk", message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
- emit(event: "HeapProfiler.heapStatsUpdate", message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
- emit(event: "HeapProfiler.lastSeenObjectId", message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
- emit(event: "HeapProfiler.reportHeapSnapshotProgress", message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
- emit(event: "HeapProfiler.resetProfiles"): boolean;
- emit(event: "Profiler.consoleProfileFinished", message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
- emit(event: "Profiler.consoleProfileStarted", message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
- emit(event: "Runtime.bindingCalled", message: InspectorNotification<Runtime.BindingCalledEventDataType>): boolean;
- emit(event: "Runtime.consoleAPICalled", message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
- emit(event: "Runtime.exceptionRevoked", message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
- emit(event: "Runtime.exceptionThrown", message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
- emit(event: "Runtime.executionContextCreated", message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
- emit(event: "Runtime.executionContextDestroyed", message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
- emit(event: "Runtime.executionContextsCleared"): boolean;
- emit(event: "Runtime.inspectRequested", message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
- emit(event: "NodeTracing.dataCollected", message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
- emit(event: "NodeTracing.tracingComplete"): boolean;
- emit(event: "NodeWorker.attachedToWorker", message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
- emit(event: "NodeWorker.detachedFromWorker", message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
- emit(event: "NodeWorker.receivedMessageFromWorker", message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
-
- on(event: string, listener: (...args: any[]) => void): this;
-
- /**
- * Emitted when any notification from the V8 Inspector is received.
- */
- on(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
-
- /**
- * Issued when new console message is added.
- */
- on(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
-
- /**
- * Fired when breakpoint is resolved to an actual script and location.
- */
- on(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
-
- /**
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
- */
- on(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
-
- /**
- * Fired when the virtual machine resumed execution.
- */
- on(event: "Debugger.resumed", listener: () => void): this;
-
- /**
- * Fired when virtual machine fails to parse the script.
- */
- on(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
-
- /**
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected
- * scripts upon enabling debugger.
- */
- on(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
-
- on(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
-
- /**
- * If heap objects tracking has been started then backend may send update for one or more fragments
- */
- on(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
-
- /**
- * If heap objects tracking has been started then backend regularly sends a current value for last
- * seen object id and corresponding timestamp. If the were changes in the heap since last event
- * then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
- */
- on(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
-
- on(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
- on(event: "HeapProfiler.resetProfiles", listener: () => void): this;
- on(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
-
- /**
- * Sent when new profile recording is started using console.profile() call.
- */
- on(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
-
- /**
- * Notification is issued every time when binding is called.
- * @experimental
- */
- on(event: "Runtime.bindingCalled", listener: (message: InspectorNotification<Runtime.BindingCalledEventDataType>) => void): this;
-
- /**
- * Issued when console API was called.
- */
- on(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
-
- /**
- * Issued when unhandled exception was revoked.
- */
- on(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
-
- /**
- * Issued when exception was thrown and unhandled.
- */
- on(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
-
- /**
- * Issued when new execution context is created.
- */
- on(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
-
- /**
- * Issued when execution context is destroyed.
- */
- on(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
-
- /**
- * Issued when all executionContexts were cleared in browser
- */
- on(event: "Runtime.executionContextsCleared", listener: () => void): this;
-
- /**
- * Issued when object should be inspected (for example, as a result of inspect() command line API
- * call).
- */
- on(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
-
- /**
- * Contains an bucket of collected trace events.
- */
- on(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
-
- /**
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
- * delivered via dataCollected events.
- */
- on(event: "NodeTracing.tracingComplete", listener: () => void): this;
-
- /**
- * Issued when attached to a worker.
- */
- on(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
-
- /**
- * Issued when detached from the worker.
- */
- on(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
-
- /**
- * Notifies about a new protocol message received from the session
- * (session ID is provided in attachedToWorker notification).
- */
- on(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
-
- once(event: string, listener: (...args: any[]) => void): this;
-
- /**
- * Emitted when any notification from the V8 Inspector is received.
- */
- once(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
-
- /**
- * Issued when new console message is added.
- */
- once(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
-
- /**
- * Fired when breakpoint is resolved to an actual script and location.
- */
- once(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
-
- /**
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
- */
- once(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
-
- /**
- * Fired when the virtual machine resumed execution.
- */
- once(event: "Debugger.resumed", listener: () => void): this;
-
- /**
- * Fired when virtual machine fails to parse the script.
- */
- once(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
-
- /**
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected
- * scripts upon enabling debugger.
- */
- once(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
-
- once(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
-
- /**
- * If heap objects tracking has been started then backend may send update for one or more fragments
- */
- once(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
-
- /**
- * If heap objects tracking has been started then backend regularly sends a current value for last
- * seen object id and corresponding timestamp. If the were changes in the heap since last event
- * then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
- */
- once(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
-
- once(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
- once(event: "HeapProfiler.resetProfiles", listener: () => void): this;
- once(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
-
- /**
- * Sent when new profile recording is started using console.profile() call.
- */
- once(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
-
- /**
- * Notification is issued every time when binding is called.
- * @experimental
- */
- once(event: "Runtime.bindingCalled", listener: (message: InspectorNotification<Runtime.BindingCalledEventDataType>) => void): this;
-
- /**
- * Issued when console API was called.
- */
- once(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
-
- /**
- * Issued when unhandled exception was revoked.
- */
- once(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
-
- /**
- * Issued when exception was thrown and unhandled.
- */
- once(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
-
- /**
- * Issued when new execution context is created.
- */
- once(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
-
- /**
- * Issued when execution context is destroyed.
- */
- once(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
-
- /**
- * Issued when all executionContexts were cleared in browser
- */
- once(event: "Runtime.executionContextsCleared", listener: () => void): this;
-
- /**
- * Issued when object should be inspected (for example, as a result of inspect() command line API
- * call).
- */
- once(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
-
- /**
- * Contains an bucket of collected trace events.
- */
- once(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
-
- /**
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
- * delivered via dataCollected events.
- */
- once(event: "NodeTracing.tracingComplete", listener: () => void): this;
-
- /**
- * Issued when attached to a worker.
- */
- once(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
-
- /**
- * Issued when detached from the worker.
- */
- once(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
-
- /**
- * Notifies about a new protocol message received from the session
- * (session ID is provided in attachedToWorker notification).
- */
- once(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
-
- prependListener(event: string, listener: (...args: any[]) => void): this;
-
- /**
- * Emitted when any notification from the V8 Inspector is received.
- */
- prependListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
-
- /**
- * Issued when new console message is added.
- */
- prependListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
-
- /**
- * Fired when breakpoint is resolved to an actual script and location.
- */
- prependListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
-
- /**
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
- */
- prependListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
-
- /**
- * Fired when the virtual machine resumed execution.
- */
- prependListener(event: "Debugger.resumed", listener: () => void): this;
-
- /**
- * Fired when virtual machine fails to parse the script.
- */
- prependListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
-
- /**
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected
- * scripts upon enabling debugger.
- */
- prependListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
-
- prependListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
-
- /**
- * If heap objects tracking has been started then backend may send update for one or more fragments
- */
- prependListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
-
- /**
- * If heap objects tracking has been started then backend regularly sends a current value for last
- * seen object id and corresponding timestamp. If the were changes in the heap since last event
- * then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
- */
- prependListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
-
- prependListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
- prependListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
- prependListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
-
- /**
- * Sent when new profile recording is started using console.profile() call.
- */
- prependListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
-
- /**
- * Notification is issued every time when binding is called.
- * @experimental
- */
- prependListener(event: "Runtime.bindingCalled", listener: (message: InspectorNotification<Runtime.BindingCalledEventDataType>) => void): this;
-
- /**
- * Issued when console API was called.
- */
- prependListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
-
- /**
- * Issued when unhandled exception was revoked.
- */
- prependListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
-
- /**
- * Issued when exception was thrown and unhandled.
- */
- prependListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
-
- /**
- * Issued when new execution context is created.
- */
- prependListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
-
- /**
- * Issued when execution context is destroyed.
- */
- prependListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
-
- /**
- * Issued when all executionContexts were cleared in browser
- */
- prependListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
-
- /**
- * Issued when object should be inspected (for example, as a result of inspect() command line API
- * call).
- */
- prependListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
-
- /**
- * Contains an bucket of collected trace events.
- */
- prependListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
-
- /**
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
- * delivered via dataCollected events.
- */
- prependListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
-
- /**
- * Issued when attached to a worker.
- */
- prependListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
-
- /**
- * Issued when detached from the worker.
- */
- prependListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
-
- /**
- * Notifies about a new protocol message received from the session
- * (session ID is provided in attachedToWorker notification).
- */
- prependListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
-
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
-
- /**
- * Emitted when any notification from the V8 Inspector is received.
- */
- prependOnceListener(event: "inspectorNotification", listener: (message: InspectorNotification<{}>) => void): this;
-
- /**
- * Issued when new console message is added.
- */
- prependOnceListener(event: "Console.messageAdded", listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
-
- /**
- * Fired when breakpoint is resolved to an actual script and location.
- */
- prependOnceListener(event: "Debugger.breakpointResolved", listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
-
- /**
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
- */
- prependOnceListener(event: "Debugger.paused", listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
-
- /**
- * Fired when the virtual machine resumed execution.
- */
- prependOnceListener(event: "Debugger.resumed", listener: () => void): this;
-
- /**
- * Fired when virtual machine fails to parse the script.
- */
- prependOnceListener(event: "Debugger.scriptFailedToParse", listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
-
- /**
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected
- * scripts upon enabling debugger.
- */
- prependOnceListener(event: "Debugger.scriptParsed", listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
-
- prependOnceListener(event: "HeapProfiler.addHeapSnapshotChunk", listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
-
- /**
- * If heap objects tracking has been started then backend may send update for one or more fragments
- */
- prependOnceListener(event: "HeapProfiler.heapStatsUpdate", listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
-
- /**
- * If heap objects tracking has been started then backend regularly sends a current value for last
- * seen object id and corresponding timestamp. If the were changes in the heap since last event
- * then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event.
- */
- prependOnceListener(event: "HeapProfiler.lastSeenObjectId", listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
-
- prependOnceListener(event: "HeapProfiler.reportHeapSnapshotProgress", listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
- prependOnceListener(event: "HeapProfiler.resetProfiles", listener: () => void): this;
- prependOnceListener(event: "Profiler.consoleProfileFinished", listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
-
- /**
- * Sent when new profile recording is started using console.profile() call.
- */
- prependOnceListener(event: "Profiler.consoleProfileStarted", listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
-
- /**
- * Notification is issued every time when binding is called.
- * @experimental
- */
- prependOnceListener(event: "Runtime.bindingCalled", listener: (message: InspectorNotification<Runtime.BindingCalledEventDataType>) => void): this;
-
- /**
- * Issued when console API was called.
- */
- prependOnceListener(event: "Runtime.consoleAPICalled", listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
-
- /**
- * Issued when unhandled exception was revoked.
- */
- prependOnceListener(event: "Runtime.exceptionRevoked", listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
-
- /**
- * Issued when exception was thrown and unhandled.
- */
- prependOnceListener(event: "Runtime.exceptionThrown", listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
-
- /**
- * Issued when new execution context is created.
- */
- prependOnceListener(event: "Runtime.executionContextCreated", listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
-
- /**
- * Issued when execution context is destroyed.
- */
- prependOnceListener(event: "Runtime.executionContextDestroyed", listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
-
- /**
- * Issued when all executionContexts were cleared in browser
- */
- prependOnceListener(event: "Runtime.executionContextsCleared", listener: () => void): this;
-
- /**
- * Issued when object should be inspected (for example, as a result of inspect() command line API
- * call).
- */
- prependOnceListener(event: "Runtime.inspectRequested", listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
-
- /**
- * Contains an bucket of collected trace events.
- */
- prependOnceListener(event: "NodeTracing.dataCollected", listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
-
- /**
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
- * delivered via dataCollected events.
- */
- prependOnceListener(event: "NodeTracing.tracingComplete", listener: () => void): this;
-
- /**
- * Issued when attached to a worker.
- */
- prependOnceListener(event: "NodeWorker.attachedToWorker", listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
-
- /**
- * Issued when detached from the worker.
- */
- prependOnceListener(event: "NodeWorker.detachedFromWorker", listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
-
- /**
- * Notifies about a new protocol message received from the session
- * (session ID is provided in attachedToWorker notification).
- */
- prependOnceListener(event: "NodeWorker.receivedMessageFromWorker", listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
- }
-
- // Top Level API
-
- /**
- * Activate inspector on host and port. Equivalent to node --inspect=[[host:]port], but can be done programatically after node has started.
- * If wait is true, will block until a client has connected to the inspect port and flow control has been passed to the debugger client.
- * @param port Port to listen on for inspector connections. Optional, defaults to what was specified on the CLI.
- * @param host Host to listen on for inspector connections. Optional, defaults to what was specified on the CLI.
- * @param wait Block until a client has connected. Optional, defaults to false.
- */
- function open(port?: number, host?: string, wait?: boolean): void;
-
- /**
- * Deactivate the inspector. Blocks until there are no active connections.
- */
- function close(): void;
-
- /**
- * Return the URL of the active inspector, or `undefined` if there is none.
- */
- function url(): string | undefined;
- }
|