css-variable-lsp 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (454) hide show
  1. package/README.md +5 -9
  2. package/package.json +5 -2
  3. package/server/out/cascadeAndInline.test.js +67 -0
  4. package/server/out/cascadeAndInline.test.js.map +1 -0
  5. package/server/out/cssVariableManager.js +390 -0
  6. package/server/out/cssVariableManager.js.map +1 -0
  7. package/server/out/domTree.js +115 -0
  8. package/server/out/domTree.js.map +1 -0
  9. package/server/out/domTree.test.js +77 -0
  10. package/server/out/domTree.test.js.map +1 -0
  11. package/server/out/fileLifecycle.test.js +163 -0
  12. package/server/out/fileLifecycle.test.js.map +1 -0
  13. package/server/out/fileTypesAndUpdates.test.js +78 -0
  14. package/server/out/fileTypesAndUpdates.test.js.map +1 -0
  15. package/server/out/htmlComments.test.js +180 -0
  16. package/server/out/htmlComments.test.js.map +1 -0
  17. package/server/out/server/src/server.js +1 -0
  18. package/server/out/server/src/server.js.map +1 -1
  19. package/server/out/server.js +458 -0
  20. package/server/out/server.js.map +1 -0
  21. package/server/out/specificity.js +138 -0
  22. package/server/out/specificity.js.map +1 -0
  23. package/server/out/specificity.test.js +66 -0
  24. package/server/out/specificity.test.js.map +1 -0
  25. package/server/out/test.js +112 -0
  26. package/server/out/test.js.map +1 -0
  27. package/server/out/tsconfig.tsbuildinfo +1 -1
  28. package/server/src/server.ts +2 -0
  29. package/server/tsconfig.tsbuildinfo +1 -0
  30. package/client/node_modules/.package-lock.json +0 -110
  31. package/client/node_modules/@types/node/LICENSE +0 -21
  32. package/client/node_modules/@types/node/README.md +0 -15
  33. package/client/node_modules/@types/node/assert/strict.d.ts +0 -8
  34. package/client/node_modules/@types/node/assert.d.ts +0 -1005
  35. package/client/node_modules/@types/node/async_hooks.d.ts +0 -586
  36. package/client/node_modules/@types/node/buffer.buffer.d.ts +0 -457
  37. package/client/node_modules/@types/node/buffer.d.ts +0 -1901
  38. package/client/node_modules/@types/node/child_process.d.ts +0 -1453
  39. package/client/node_modules/@types/node/cluster.d.ts +0 -578
  40. package/client/node_modules/@types/node/compatibility/disposable.d.ts +0 -14
  41. package/client/node_modules/@types/node/compatibility/index.d.ts +0 -9
  42. package/client/node_modules/@types/node/compatibility/indexable.d.ts +0 -20
  43. package/client/node_modules/@types/node/compatibility/iterators.d.ts +0 -20
  44. package/client/node_modules/@types/node/console.d.ts +0 -452
  45. package/client/node_modules/@types/node/constants.d.ts +0 -21
  46. package/client/node_modules/@types/node/crypto.d.ts +0 -4504
  47. package/client/node_modules/@types/node/dgram.d.ts +0 -596
  48. package/client/node_modules/@types/node/diagnostics_channel.d.ts +0 -551
  49. package/client/node_modules/@types/node/dns/promises.d.ts +0 -477
  50. package/client/node_modules/@types/node/dns.d.ts +0 -860
  51. package/client/node_modules/@types/node/domain.d.ts +0 -170
  52. package/client/node_modules/@types/node/events.d.ts +0 -863
  53. package/client/node_modules/@types/node/fs/promises.d.ts +0 -1208
  54. package/client/node_modules/@types/node/fs.d.ts +0 -4332
  55. package/client/node_modules/@types/node/globals.d.ts +0 -170
  56. package/client/node_modules/@types/node/globals.typedarray.d.ts +0 -21
  57. package/client/node_modules/@types/node/http.d.ts +0 -1919
  58. package/client/node_modules/@types/node/http2.d.ts +0 -2580
  59. package/client/node_modules/@types/node/https.d.ts +0 -549
  60. package/client/node_modules/@types/node/index.d.ts +0 -92
  61. package/client/node_modules/@types/node/inspector.generated.d.ts +0 -2775
  62. package/client/node_modules/@types/node/module.d.ts +0 -503
  63. package/client/node_modules/@types/node/net.d.ts +0 -924
  64. package/client/node_modules/@types/node/os.d.ts +0 -480
  65. package/client/node_modules/@types/node/package.json +0 -145
  66. package/client/node_modules/@types/node/path.d.ts +0 -191
  67. package/client/node_modules/@types/node/perf_hooks.d.ts +0 -860
  68. package/client/node_modules/@types/node/process.d.ts +0 -1632
  69. package/client/node_modules/@types/node/punycode.d.ts +0 -117
  70. package/client/node_modules/@types/node/querystring.d.ts +0 -140
  71. package/client/node_modules/@types/node/readline/promises.d.ts +0 -154
  72. package/client/node_modules/@types/node/readline.d.ts +0 -715
  73. package/client/node_modules/@types/node/repl.d.ts +0 -430
  74. package/client/node_modules/@types/node/stream/consumers.d.ts +0 -38
  75. package/client/node_modules/@types/node/stream/promises.d.ts +0 -90
  76. package/client/node_modules/@types/node/stream/web.d.ts +0 -527
  77. package/client/node_modules/@types/node/stream.d.ts +0 -1680
  78. package/client/node_modules/@types/node/string_decoder.d.ts +0 -67
  79. package/client/node_modules/@types/node/test.d.ts +0 -1208
  80. package/client/node_modules/@types/node/timers/promises.d.ts +0 -108
  81. package/client/node_modules/@types/node/timers.d.ts +0 -286
  82. package/client/node_modules/@types/node/tls.d.ts +0 -1204
  83. package/client/node_modules/@types/node/trace_events.d.ts +0 -171
  84. package/client/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +0 -455
  85. package/client/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -19
  86. package/client/node_modules/@types/node/ts5.6/index.d.ts +0 -92
  87. package/client/node_modules/@types/node/tty.d.ts +0 -206
  88. package/client/node_modules/@types/node/url.d.ts +0 -957
  89. package/client/node_modules/@types/node/util.d.ts +0 -2083
  90. package/client/node_modules/@types/node/v8.d.ts +0 -753
  91. package/client/node_modules/@types/node/vm.d.ts +0 -704
  92. package/client/node_modules/@types/node/wasi.d.ts +0 -160
  93. package/client/node_modules/@types/node/web-globals/abortcontroller.d.ts +0 -34
  94. package/client/node_modules/@types/node/web-globals/domexception.d.ts +0 -68
  95. package/client/node_modules/@types/node/web-globals/events.d.ts +0 -81
  96. package/client/node_modules/@types/node/web-globals/fetch.d.ts +0 -38
  97. package/client/node_modules/@types/node/worker_threads.d.ts +0 -698
  98. package/client/node_modules/@types/node/zlib.d.ts +0 -517
  99. package/client/node_modules/@types/vscode/LICENSE +0 -21
  100. package/client/node_modules/@types/vscode/README.md +0 -15
  101. package/client/node_modules/@types/vscode/index.d.ts +0 -21145
  102. package/client/node_modules/@types/vscode/package.json +0 -26
  103. package/client/node_modules/balanced-match/.github/FUNDING.yml +0 -2
  104. package/client/node_modules/balanced-match/LICENSE.md +0 -21
  105. package/client/node_modules/balanced-match/README.md +0 -97
  106. package/client/node_modules/balanced-match/index.js +0 -62
  107. package/client/node_modules/balanced-match/package.json +0 -48
  108. package/client/node_modules/brace-expansion/.github/FUNDING.yml +0 -2
  109. package/client/node_modules/brace-expansion/LICENSE +0 -21
  110. package/client/node_modules/brace-expansion/README.md +0 -135
  111. package/client/node_modules/brace-expansion/index.js +0 -203
  112. package/client/node_modules/brace-expansion/package.json +0 -49
  113. package/client/node_modules/minimatch/LICENSE +0 -15
  114. package/client/node_modules/minimatch/README.md +0 -259
  115. package/client/node_modules/minimatch/lib/path.js +0 -4
  116. package/client/node_modules/minimatch/minimatch.js +0 -944
  117. package/client/node_modules/minimatch/package.json +0 -35
  118. package/client/node_modules/semver/LICENSE +0 -15
  119. package/client/node_modules/semver/README.md +0 -664
  120. package/client/node_modules/semver/bin/semver.js +0 -191
  121. package/client/node_modules/semver/classes/comparator.js +0 -143
  122. package/client/node_modules/semver/classes/index.js +0 -7
  123. package/client/node_modules/semver/classes/range.js +0 -557
  124. package/client/node_modules/semver/classes/semver.js +0 -333
  125. package/client/node_modules/semver/functions/clean.js +0 -8
  126. package/client/node_modules/semver/functions/cmp.js +0 -54
  127. package/client/node_modules/semver/functions/coerce.js +0 -62
  128. package/client/node_modules/semver/functions/compare-build.js +0 -9
  129. package/client/node_modules/semver/functions/compare-loose.js +0 -5
  130. package/client/node_modules/semver/functions/compare.js +0 -7
  131. package/client/node_modules/semver/functions/diff.js +0 -60
  132. package/client/node_modules/semver/functions/eq.js +0 -5
  133. package/client/node_modules/semver/functions/gt.js +0 -5
  134. package/client/node_modules/semver/functions/gte.js +0 -5
  135. package/client/node_modules/semver/functions/inc.js +0 -21
  136. package/client/node_modules/semver/functions/lt.js +0 -5
  137. package/client/node_modules/semver/functions/lte.js +0 -5
  138. package/client/node_modules/semver/functions/major.js +0 -5
  139. package/client/node_modules/semver/functions/minor.js +0 -5
  140. package/client/node_modules/semver/functions/neq.js +0 -5
  141. package/client/node_modules/semver/functions/parse.js +0 -18
  142. package/client/node_modules/semver/functions/patch.js +0 -5
  143. package/client/node_modules/semver/functions/prerelease.js +0 -8
  144. package/client/node_modules/semver/functions/rcompare.js +0 -5
  145. package/client/node_modules/semver/functions/rsort.js +0 -5
  146. package/client/node_modules/semver/functions/satisfies.js +0 -12
  147. package/client/node_modules/semver/functions/sort.js +0 -5
  148. package/client/node_modules/semver/functions/valid.js +0 -8
  149. package/client/node_modules/semver/index.js +0 -91
  150. package/client/node_modules/semver/internal/constants.js +0 -37
  151. package/client/node_modules/semver/internal/debug.js +0 -11
  152. package/client/node_modules/semver/internal/identifiers.js +0 -29
  153. package/client/node_modules/semver/internal/lrucache.js +0 -42
  154. package/client/node_modules/semver/internal/parse-options.js +0 -17
  155. package/client/node_modules/semver/internal/re.js +0 -223
  156. package/client/node_modules/semver/package.json +0 -78
  157. package/client/node_modules/semver/preload.js +0 -4
  158. package/client/node_modules/semver/range.bnf +0 -16
  159. package/client/node_modules/semver/ranges/gtr.js +0 -6
  160. package/client/node_modules/semver/ranges/intersects.js +0 -9
  161. package/client/node_modules/semver/ranges/ltr.js +0 -6
  162. package/client/node_modules/semver/ranges/max-satisfying.js +0 -27
  163. package/client/node_modules/semver/ranges/min-satisfying.js +0 -26
  164. package/client/node_modules/semver/ranges/min-version.js +0 -63
  165. package/client/node_modules/semver/ranges/outside.js +0 -82
  166. package/client/node_modules/semver/ranges/simplify.js +0 -49
  167. package/client/node_modules/semver/ranges/subset.js +0 -249
  168. package/client/node_modules/semver/ranges/to-comparators.js +0 -10
  169. package/client/node_modules/semver/ranges/valid.js +0 -13
  170. package/client/node_modules/undici-types/README.md +0 -6
  171. package/client/node_modules/undici-types/agent.d.ts +0 -31
  172. package/client/node_modules/undici-types/api.d.ts +0 -43
  173. package/client/node_modules/undici-types/balanced-pool.d.ts +0 -18
  174. package/client/node_modules/undici-types/cache.d.ts +0 -36
  175. package/client/node_modules/undici-types/client.d.ts +0 -97
  176. package/client/node_modules/undici-types/connector.d.ts +0 -34
  177. package/client/node_modules/undici-types/content-type.d.ts +0 -21
  178. package/client/node_modules/undici-types/cookies.d.ts +0 -28
  179. package/client/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
  180. package/client/node_modules/undici-types/dispatcher.d.ts +0 -241
  181. package/client/node_modules/undici-types/errors.d.ts +0 -128
  182. package/client/node_modules/undici-types/fetch.d.ts +0 -209
  183. package/client/node_modules/undici-types/file.d.ts +0 -39
  184. package/client/node_modules/undici-types/filereader.d.ts +0 -54
  185. package/client/node_modules/undici-types/formdata.d.ts +0 -108
  186. package/client/node_modules/undici-types/global-dispatcher.d.ts +0 -9
  187. package/client/node_modules/undici-types/global-origin.d.ts +0 -7
  188. package/client/node_modules/undici-types/handlers.d.ts +0 -9
  189. package/client/node_modules/undici-types/header.d.ts +0 -4
  190. package/client/node_modules/undici-types/index.d.ts +0 -63
  191. package/client/node_modules/undici-types/interceptors.d.ts +0 -5
  192. package/client/node_modules/undici-types/mock-agent.d.ts +0 -50
  193. package/client/node_modules/undici-types/mock-client.d.ts +0 -25
  194. package/client/node_modules/undici-types/mock-errors.d.ts +0 -12
  195. package/client/node_modules/undici-types/mock-interceptor.d.ts +0 -93
  196. package/client/node_modules/undici-types/mock-pool.d.ts +0 -25
  197. package/client/node_modules/undici-types/package.json +0 -55
  198. package/client/node_modules/undici-types/patch.d.ts +0 -71
  199. package/client/node_modules/undici-types/pool-stats.d.ts +0 -19
  200. package/client/node_modules/undici-types/pool.d.ts +0 -28
  201. package/client/node_modules/undici-types/proxy-agent.d.ts +0 -30
  202. package/client/node_modules/undici-types/readable.d.ts +0 -61
  203. package/client/node_modules/undici-types/webidl.d.ts +0 -220
  204. package/client/node_modules/undici-types/websocket.d.ts +0 -131
  205. package/client/node_modules/vscode-jsonrpc/License.txt +0 -11
  206. package/client/node_modules/vscode-jsonrpc/README.md +0 -69
  207. package/client/node_modules/vscode-jsonrpc/browser.d.ts +0 -6
  208. package/client/node_modules/vscode-jsonrpc/browser.js +0 -7
  209. package/client/node_modules/vscode-jsonrpc/lib/browser/main.d.ts +0 -17
  210. package/client/node_modules/vscode-jsonrpc/lib/browser/main.js +0 -76
  211. package/client/node_modules/vscode-jsonrpc/lib/browser/ril.d.ts +0 -12
  212. package/client/node_modules/vscode-jsonrpc/lib/browser/ril.js +0 -156
  213. package/client/node_modules/vscode-jsonrpc/lib/common/api.d.ts +0 -14
  214. package/client/node_modules/vscode-jsonrpc/lib/common/api.js +0 -81
  215. package/client/node_modules/vscode-jsonrpc/lib/common/cancellation.d.ts +0 -32
  216. package/client/node_modules/vscode-jsonrpc/lib/common/cancellation.js +0 -96
  217. package/client/node_modules/vscode-jsonrpc/lib/common/connection.d.ts +0 -358
  218. package/client/node_modules/vscode-jsonrpc/lib/common/connection.js +0 -1212
  219. package/client/node_modules/vscode-jsonrpc/lib/common/disposable.d.ts +0 -9
  220. package/client/node_modules/vscode-jsonrpc/lib/common/disposable.js +0 -16
  221. package/client/node_modules/vscode-jsonrpc/lib/common/encoding.d.ts +0 -52
  222. package/client/node_modules/vscode-jsonrpc/lib/common/encoding.js +0 -70
  223. package/client/node_modules/vscode-jsonrpc/lib/common/events.d.ts +0 -39
  224. package/client/node_modules/vscode-jsonrpc/lib/common/events.js +0 -128
  225. package/client/node_modules/vscode-jsonrpc/lib/common/is.d.ts +0 -7
  226. package/client/node_modules/vscode-jsonrpc/lib/common/is.js +0 -35
  227. package/client/node_modules/vscode-jsonrpc/lib/common/linkedMap.d.ts +0 -53
  228. package/client/node_modules/vscode-jsonrpc/lib/common/linkedMap.js +0 -398
  229. package/client/node_modules/vscode-jsonrpc/lib/common/messageBuffer.d.ts +0 -18
  230. package/client/node_modules/vscode-jsonrpc/lib/common/messageBuffer.js +0 -152
  231. package/client/node_modules/vscode-jsonrpc/lib/common/messageReader.d.ts +0 -77
  232. package/client/node_modules/vscode-jsonrpc/lib/common/messageReader.js +0 -197
  233. package/client/node_modules/vscode-jsonrpc/lib/common/messageWriter.d.ts +0 -60
  234. package/client/node_modules/vscode-jsonrpc/lib/common/messageWriter.js +0 -115
  235. package/client/node_modules/vscode-jsonrpc/lib/common/messages.d.ts +0 -369
  236. package/client/node_modules/vscode-jsonrpc/lib/common/messages.js +0 -306
  237. package/client/node_modules/vscode-jsonrpc/lib/common/ral.d.ts +0 -74
  238. package/client/node_modules/vscode-jsonrpc/lib/common/ral.js +0 -23
  239. package/client/node_modules/vscode-jsonrpc/lib/common/semaphore.d.ts +0 -10
  240. package/client/node_modules/vscode-jsonrpc/lib/common/semaphore.js +0 -68
  241. package/client/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.d.ts +0 -15
  242. package/client/node_modules/vscode-jsonrpc/lib/common/sharedArrayCancellation.js +0 -76
  243. package/client/node_modules/vscode-jsonrpc/lib/node/main.d.ts +0 -63
  244. package/client/node_modules/vscode-jsonrpc/lib/node/main.js +0 -257
  245. package/client/node_modules/vscode-jsonrpc/lib/node/ril.d.ts +0 -13
  246. package/client/node_modules/vscode-jsonrpc/lib/node/ril.js +0 -161
  247. package/client/node_modules/vscode-jsonrpc/node.cmd +0 -5
  248. package/client/node_modules/vscode-jsonrpc/node.d.ts +0 -6
  249. package/client/node_modules/vscode-jsonrpc/node.js +0 -7
  250. package/client/node_modules/vscode-jsonrpc/package.json +0 -45
  251. package/client/node_modules/vscode-jsonrpc/thirdpartynotices.txt +0 -16
  252. package/client/node_modules/vscode-jsonrpc/typings/thenable.d.ts +0 -5
  253. package/client/node_modules/vscode-languageclient/License.txt +0 -11
  254. package/client/node_modules/vscode-languageclient/README.md +0 -17
  255. package/client/node_modules/vscode-languageclient/browser.d.ts +0 -6
  256. package/client/node_modules/vscode-languageclient/browser.js +0 -7
  257. package/client/node_modules/vscode-languageclient/lib/browser/main.d.ts +0 -8
  258. package/client/node_modules/vscode-languageclient/lib/browser/main.js +0 -37
  259. package/client/node_modules/vscode-languageclient/lib/common/api.d.ts +0 -36
  260. package/client/node_modules/vscode-languageclient/lib/common/api.js +0 -27
  261. package/client/node_modules/vscode-languageclient/lib/common/callHierarchy.d.ts +0 -37
  262. package/client/node_modules/vscode-languageclient/lib/common/callHierarchy.js +0 -97
  263. package/client/node_modules/vscode-languageclient/lib/common/client.d.ts +0 -476
  264. package/client/node_modules/vscode-languageclient/lib/common/client.js +0 -1600
  265. package/client/node_modules/vscode-languageclient/lib/common/codeAction.d.ts +0 -19
  266. package/client/node_modules/vscode-languageclient/lib/common/codeAction.js +0 -99
  267. package/client/node_modules/vscode-languageclient/lib/common/codeConverter.d.ts +0 -78
  268. package/client/node_modules/vscode-languageclient/lib/common/codeConverter.js +0 -876
  269. package/client/node_modules/vscode-languageclient/lib/common/codeLens.d.ts +0 -23
  270. package/client/node_modules/vscode-languageclient/lib/common/codeLens.js +0 -78
  271. package/client/node_modules/vscode-languageclient/lib/common/colorProvider.d.ts +0 -25
  272. package/client/node_modules/vscode-languageclient/lib/common/colorProvider.js +0 -74
  273. package/client/node_modules/vscode-languageclient/lib/common/completion.d.ts +0 -20
  274. package/client/node_modules/vscode-languageclient/lib/common/completion.js +0 -126
  275. package/client/node_modules/vscode-languageclient/lib/common/configuration.d.ts +0 -69
  276. package/client/node_modules/vscode-languageclient/lib/common/configuration.js +0 -209
  277. package/client/node_modules/vscode-languageclient/lib/common/declaration.d.ts +0 -16
  278. package/client/node_modules/vscode-languageclient/lib/common/declaration.js +0 -54
  279. package/client/node_modules/vscode-languageclient/lib/common/definition.d.ts +0 -16
  280. package/client/node_modules/vscode-languageclient/lib/common/definition.js +0 -55
  281. package/client/node_modules/vscode-languageclient/lib/common/diagnostic.d.ts +0 -122
  282. package/client/node_modules/vscode-languageclient/lib/common/diagnostic.js +0 -814
  283. package/client/node_modules/vscode-languageclient/lib/common/documentHighlight.d.ts +0 -15
  284. package/client/node_modules/vscode-languageclient/lib/common/documentHighlight.js +0 -50
  285. package/client/node_modules/vscode-languageclient/lib/common/documentLink.d.ts +0 -19
  286. package/client/node_modules/vscode-languageclient/lib/common/documentLink.js +0 -71
  287. package/client/node_modules/vscode-languageclient/lib/common/documentSymbol.d.ts +0 -17
  288. package/client/node_modules/vscode-languageclient/lib/common/documentSymbol.js +0 -104
  289. package/client/node_modules/vscode-languageclient/lib/common/executeCommand.d.ts +0 -21
  290. package/client/node_modules/vscode-languageclient/lib/common/executeCommand.js +0 -72
  291. package/client/node_modules/vscode-languageclient/lib/common/features.d.ts +0 -418
  292. package/client/node_modules/vscode-languageclient/lib/common/features.js +0 -291
  293. package/client/node_modules/vscode-languageclient/lib/common/fileOperations.d.ts +0 -116
  294. package/client/node_modules/vscode-languageclient/lib/common/fileOperations.js +0 -333
  295. package/client/node_modules/vscode-languageclient/lib/common/fileSystemWatcher.d.ts +0 -18
  296. package/client/node_modules/vscode-languageclient/lib/common/fileSystemWatcher.js +0 -95
  297. package/client/node_modules/vscode-languageclient/lib/common/foldingRange.d.ts +0 -19
  298. package/client/node_modules/vscode-languageclient/lib/common/foldingRange.js +0 -65
  299. package/client/node_modules/vscode-languageclient/lib/common/formatting.d.ts +0 -39
  300. package/client/node_modules/vscode-languageclient/lib/common/formatting.js +0 -182
  301. package/client/node_modules/vscode-languageclient/lib/common/hover.d.ts +0 -16
  302. package/client/node_modules/vscode-languageclient/lib/common/hover.js +0 -58
  303. package/client/node_modules/vscode-languageclient/lib/common/implementation.d.ts +0 -16
  304. package/client/node_modules/vscode-languageclient/lib/common/implementation.js +0 -54
  305. package/client/node_modules/vscode-languageclient/lib/common/inlayHint.d.ts +0 -20
  306. package/client/node_modules/vscode-languageclient/lib/common/inlayHint.js +0 -92
  307. package/client/node_modules/vscode-languageclient/lib/common/inlineCompletion.d.ts +0 -18
  308. package/client/node_modules/vscode-languageclient/lib/common/inlineCompletion.js +0 -54
  309. package/client/node_modules/vscode-languageclient/lib/common/inlineValue.d.ts +0 -18
  310. package/client/node_modules/vscode-languageclient/lib/common/inlineValue.js +0 -65
  311. package/client/node_modules/vscode-languageclient/lib/common/linkedEditingRange.d.ts +0 -21
  312. package/client/node_modules/vscode-languageclient/lib/common/linkedEditingRange.js +0 -53
  313. package/client/node_modules/vscode-languageclient/lib/common/notebook.d.ts +0 -96
  314. package/client/node_modules/vscode-languageclient/lib/common/notebook.js +0 -851
  315. package/client/node_modules/vscode-languageclient/lib/common/progress.d.ts +0 -11
  316. package/client/node_modules/vscode-languageclient/lib/common/progress.js +0 -44
  317. package/client/node_modules/vscode-languageclient/lib/common/progressPart.d.ts +0 -24
  318. package/client/node_modules/vscode-languageclient/lib/common/progressPart.js +0 -96
  319. package/client/node_modules/vscode-languageclient/lib/common/protocolCallHierarchyItem.d.ts +0 -6
  320. package/client/node_modules/vscode-languageclient/lib/common/protocolCallHierarchyItem.js +0 -16
  321. package/client/node_modules/vscode-languageclient/lib/common/protocolCodeAction.d.ts +0 -6
  322. package/client/node_modules/vscode-languageclient/lib/common/protocolCodeAction.js +0 -14
  323. package/client/node_modules/vscode-languageclient/lib/common/protocolCodeLens.d.ts +0 -5
  324. package/client/node_modules/vscode-languageclient/lib/common/protocolCodeLens.js +0 -13
  325. package/client/node_modules/vscode-languageclient/lib/common/protocolCompletionItem.d.ts +0 -11
  326. package/client/node_modules/vscode-languageclient/lib/common/protocolCompletionItem.js +0 -13
  327. package/client/node_modules/vscode-languageclient/lib/common/protocolConverter.d.ts +0 -167
  328. package/client/node_modules/vscode-languageclient/lib/common/protocolConverter.js +0 -1134
  329. package/client/node_modules/vscode-languageclient/lib/common/protocolDiagnostic.d.ts +0 -18
  330. package/client/node_modules/vscode-languageclient/lib/common/protocolDiagnostic.js +0 -25
  331. package/client/node_modules/vscode-languageclient/lib/common/protocolDocumentLink.d.ts +0 -5
  332. package/client/node_modules/vscode-languageclient/lib/common/protocolDocumentLink.js +0 -13
  333. package/client/node_modules/vscode-languageclient/lib/common/protocolInlayHint.d.ts +0 -5
  334. package/client/node_modules/vscode-languageclient/lib/common/protocolInlayHint.js +0 -13
  335. package/client/node_modules/vscode-languageclient/lib/common/protocolTypeHierarchyItem.d.ts +0 -6
  336. package/client/node_modules/vscode-languageclient/lib/common/protocolTypeHierarchyItem.js +0 -16
  337. package/client/node_modules/vscode-languageclient/lib/common/protocolWorkspaceSymbol.d.ts +0 -7
  338. package/client/node_modules/vscode-languageclient/lib/common/protocolWorkspaceSymbol.js +0 -18
  339. package/client/node_modules/vscode-languageclient/lib/common/reference.d.ts +0 -20
  340. package/client/node_modules/vscode-languageclient/lib/common/reference.js +0 -53
  341. package/client/node_modules/vscode-languageclient/lib/common/rename.d.ts +0 -27
  342. package/client/node_modules/vscode-languageclient/lib/common/rename.js +0 -113
  343. package/client/node_modules/vscode-languageclient/lib/common/selectionRange.d.ts +0 -16
  344. package/client/node_modules/vscode-languageclient/lib/common/selectionRange.js +0 -57
  345. package/client/node_modules/vscode-languageclient/lib/common/semanticTokens.d.ts +0 -33
  346. package/client/node_modules/vscode-languageclient/lib/common/semanticTokens.js +0 -179
  347. package/client/node_modules/vscode-languageclient/lib/common/signatureHelp.d.ts +0 -16
  348. package/client/node_modules/vscode-languageclient/lib/common/signatureHelp.js +0 -71
  349. package/client/node_modules/vscode-languageclient/lib/common/textSynchronization.d.ts +0 -101
  350. package/client/node_modules/vscode-languageclient/lib/common/textSynchronization.js +0 -402
  351. package/client/node_modules/vscode-languageclient/lib/common/typeDefinition.d.ts +0 -16
  352. package/client/node_modules/vscode-languageclient/lib/common/typeDefinition.js +0 -55
  353. package/client/node_modules/vscode-languageclient/lib/common/typeHierarchy.d.ts +0 -31
  354. package/client/node_modules/vscode-languageclient/lib/common/typeHierarchy.js +0 -96
  355. package/client/node_modules/vscode-languageclient/lib/common/utils/async.d.ts +0 -41
  356. package/client/node_modules/vscode-languageclient/lib/common/utils/async.js +0 -276
  357. package/client/node_modules/vscode-languageclient/lib/common/utils/is.d.ts +0 -12
  358. package/client/node_modules/vscode-languageclient/lib/common/utils/is.js +0 -57
  359. package/client/node_modules/vscode-languageclient/lib/common/utils/uuid.d.ts +0 -22
  360. package/client/node_modules/vscode-languageclient/lib/common/utils/uuid.js +0 -97
  361. package/client/node_modules/vscode-languageclient/lib/common/workspaceFolder.d.ts +0 -30
  362. package/client/node_modules/vscode-languageclient/lib/common/workspaceFolder.js +0 -148
  363. package/client/node_modules/vscode-languageclient/lib/common/workspaceSymbol.d.ts +0 -19
  364. package/client/node_modules/vscode-languageclient/lib/common/workspaceSymbol.js +0 -79
  365. package/client/node_modules/vscode-languageclient/lib/node/main.d.ts +0 -100
  366. package/client/node_modules/vscode-languageclient/lib/node/main.js +0 -570
  367. package/client/node_modules/vscode-languageclient/lib/node/processes.d.ts +0 -6
  368. package/client/node_modules/vscode-languageclient/lib/node/processes.js +0 -47
  369. package/client/node_modules/vscode-languageclient/lib/node/terminateProcess.sh +0 -16
  370. package/client/node_modules/vscode-languageclient/node.cmd +0 -5
  371. package/client/node_modules/vscode-languageclient/node.d.ts +0 -6
  372. package/client/node_modules/vscode-languageclient/node.js +0 -7
  373. package/client/node_modules/vscode-languageclient/package.json +0 -50
  374. package/client/node_modules/vscode-languageserver-protocol/License.txt +0 -11
  375. package/client/node_modules/vscode-languageserver-protocol/README.md +0 -16
  376. package/client/node_modules/vscode-languageserver-protocol/browser.d.ts +0 -6
  377. package/client/node_modules/vscode-languageserver-protocol/browser.js +0 -7
  378. package/client/node_modules/vscode-languageserver-protocol/lib/browser/main.d.ts +0 -4
  379. package/client/node_modules/vscode-languageserver-protocol/lib/browser/main.js +0 -28
  380. package/client/node_modules/vscode-languageserver-protocol/lib/common/api.d.ts +0 -58
  381. package/client/node_modules/vscode-languageserver-protocol/lib/common/api.js +0 -77
  382. package/client/node_modules/vscode-languageserver-protocol/lib/common/connection.d.ts +0 -187
  383. package/client/node_modules/vscode-languageserver-protocol/lib/common/connection.js +0 -15
  384. package/client/node_modules/vscode-languageserver-protocol/lib/common/messages.d.ts +0 -51
  385. package/client/node_modules/vscode-languageserver-protocol/lib/common/messages.js +0 -44
  386. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.$.d.ts +0 -1
  387. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.$.js +0 -43
  388. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.d.ts +0 -86
  389. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.callHierarchy.js +0 -42
  390. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.d.ts +0 -66
  391. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.colorProvider.js +0 -32
  392. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.d.ts +0 -35
  393. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.configuration.js +0 -24
  394. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.d.ts +0 -3252
  395. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.d.ts +0 -37
  396. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.declaration.js +0 -22
  397. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.d.ts +0 -341
  398. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.diagnostic.js +0 -74
  399. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.d.ts +0 -306
  400. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.fileOperations.js +0 -101
  401. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.d.ts +0 -109
  402. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.foldingRange.js +0 -30
  403. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.d.ts +0 -38
  404. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.implementation.js +0 -21
  405. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.d.ts +0 -110
  406. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlayHint.js +0 -43
  407. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.d.ts +0 -57
  408. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineCompletion.js +0 -22
  409. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.d.ts +0 -86
  410. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.inlineValue.js +0 -30
  411. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.js +0 -943
  412. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.d.ts +0 -52
  413. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.linkedEditingRange.js +0 -19
  414. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.d.ts +0 -106
  415. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.moniker.js +0 -68
  416. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.d.ts +0 -400
  417. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.notebook.js +0 -214
  418. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.d.ts +0 -107
  419. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.progress.js +0 -37
  420. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.d.ts +0 -41
  421. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.selectionRange.js +0 -20
  422. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.d.ts +0 -223
  423. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.semanticTokens.js +0 -57
  424. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.d.ts +0 -72
  425. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.showDocument.js +0 -22
  426. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.d.ts +0 -38
  427. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeDefinition.js +0 -21
  428. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.d.ts +0 -83
  429. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.typeHierarchy.js +0 -42
  430. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.d.ts +0 -74
  431. package/client/node_modules/vscode-languageserver-protocol/lib/common/protocol.workspaceFolder.js +0 -27
  432. package/client/node_modules/vscode-languageserver-protocol/lib/common/utils/is.d.ts +0 -9
  433. package/client/node_modules/vscode-languageserver-protocol/lib/common/utils/is.js +0 -46
  434. package/client/node_modules/vscode-languageserver-protocol/lib/node/main.d.ts +0 -6
  435. package/client/node_modules/vscode-languageserver-protocol/lib/node/main.js +0 -28
  436. package/client/node_modules/vscode-languageserver-protocol/metaModel.schema.json +0 -783
  437. package/client/node_modules/vscode-languageserver-protocol/node.cmd +0 -5
  438. package/client/node_modules/vscode-languageserver-protocol/node.d.ts +0 -6
  439. package/client/node_modules/vscode-languageserver-protocol/node.js +0 -7
  440. package/client/node_modules/vscode-languageserver-protocol/package.json +0 -45
  441. package/client/node_modules/vscode-languageserver-protocol/thirdpartynotices.txt +0 -31
  442. package/client/node_modules/vscode-languageserver-types/License.txt +0 -11
  443. package/client/node_modules/vscode-languageserver-types/README.md +0 -17
  444. package/client/node_modules/vscode-languageserver-types/lib/esm/main.d.ts +0 -3139
  445. package/client/node_modules/vscode-languageserver-types/lib/esm/main.js +0 -2222
  446. package/client/node_modules/vscode-languageserver-types/lib/esm/package.json +0 -3
  447. package/client/node_modules/vscode-languageserver-types/lib/umd/main.d.ts +0 -3139
  448. package/client/node_modules/vscode-languageserver-types/lib/umd/main.js +0 -2272
  449. package/client/node_modules/vscode-languageserver-types/package.json +0 -38
  450. package/client/node_modules/vscode-languageserver-types/thirdpartynotices.txt +0 -16
  451. package/client/package-lock.json +0 -125
  452. package/client/package.json +0 -42
  453. package/client/src/extension.ts +0 -56
  454. package/client/tsconfig.json +0 -12
@@ -1,2775 +0,0 @@
1
- // Type definitions for inspector
2
-
3
- // These definitions are auto-generated.
4
- // Please see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/19330
5
- // for more information.
6
-
7
-
8
- /**
9
- * The `inspector` module provides an API for interacting with the V8 inspector.
10
- *
11
- * It can be accessed using:
12
- *
13
- * ```js
14
- * import inspector from 'node:inspector';
15
- * ```
16
- * @see [source](https://github.com/nodejs/node/blob/v18.0.0/lib/inspector.js)
17
- */
18
- declare module 'inspector' {
19
- import EventEmitter = require('node:events');
20
- interface InspectorNotification<T> {
21
- method: string;
22
- params: T;
23
- }
24
- namespace Schema {
25
- /**
26
- * Description of the protocol domain.
27
- */
28
- interface Domain {
29
- /**
30
- * Domain name.
31
- */
32
- name: string;
33
- /**
34
- * Domain version.
35
- */
36
- version: string;
37
- }
38
- interface GetDomainsReturnType {
39
- /**
40
- * List of supported domains.
41
- */
42
- domains: Domain[];
43
- }
44
- }
45
- namespace Runtime {
46
- /**
47
- * Unique script identifier.
48
- */
49
- type ScriptId = string;
50
- /**
51
- * Unique object identifier.
52
- */
53
- type RemoteObjectId = string;
54
- /**
55
- * Primitive value which cannot be JSON-stringified.
56
- */
57
- type UnserializableValue = string;
58
- /**
59
- * Mirror object referencing original JavaScript object.
60
- */
61
- interface RemoteObject {
62
- /**
63
- * Object type.
64
- */
65
- type: string;
66
- /**
67
- * Object subtype hint. Specified for <code>object</code> type values only.
68
- */
69
- subtype?: string | undefined;
70
- /**
71
- * Object class (constructor) name. Specified for <code>object</code> type values only.
72
- */
73
- className?: string | undefined;
74
- /**
75
- * Remote object value in case of primitive values or JSON values (if it was requested).
76
- */
77
- value?: any;
78
- /**
79
- * Primitive value which can not be JSON-stringified does not have <code>value</code>, but gets this property.
80
- */
81
- unserializableValue?: UnserializableValue | undefined;
82
- /**
83
- * String representation of the object.
84
- */
85
- description?: string | undefined;
86
- /**
87
- * Unique object identifier (for non-primitive values).
88
- */
89
- objectId?: RemoteObjectId | undefined;
90
- /**
91
- * Preview containing abbreviated property values. Specified for <code>object</code> type values only.
92
- * @experimental
93
- */
94
- preview?: ObjectPreview | undefined;
95
- /**
96
- * @experimental
97
- */
98
- customPreview?: CustomPreview | undefined;
99
- }
100
- /**
101
- * @experimental
102
- */
103
- interface CustomPreview {
104
- header: string;
105
- hasBody: boolean;
106
- formatterObjectId: RemoteObjectId;
107
- bindRemoteObjectFunctionId: RemoteObjectId;
108
- configObjectId?: RemoteObjectId | undefined;
109
- }
110
- /**
111
- * Object containing abbreviated remote object value.
112
- * @experimental
113
- */
114
- interface ObjectPreview {
115
- /**
116
- * Object type.
117
- */
118
- type: string;
119
- /**
120
- * Object subtype hint. Specified for <code>object</code> type values only.
121
- */
122
- subtype?: string | undefined;
123
- /**
124
- * String representation of the object.
125
- */
126
- description?: string | undefined;
127
- /**
128
- * True iff some of the properties or entries of the original object did not fit.
129
- */
130
- overflow: boolean;
131
- /**
132
- * List of the properties.
133
- */
134
- properties: PropertyPreview[];
135
- /**
136
- * List of the entries. Specified for <code>map</code> and <code>set</code> subtype values only.
137
- */
138
- entries?: EntryPreview[] | undefined;
139
- }
140
- /**
141
- * @experimental
142
- */
143
- interface PropertyPreview {
144
- /**
145
- * Property name.
146
- */
147
- name: string;
148
- /**
149
- * Object type. Accessor means that the property itself is an accessor property.
150
- */
151
- type: string;
152
- /**
153
- * User-friendly property value string.
154
- */
155
- value?: string | undefined;
156
- /**
157
- * Nested value preview.
158
- */
159
- valuePreview?: ObjectPreview | undefined;
160
- /**
161
- * Object subtype hint. Specified for <code>object</code> type values only.
162
- */
163
- subtype?: string | undefined;
164
- }
165
- /**
166
- * @experimental
167
- */
168
- interface EntryPreview {
169
- /**
170
- * Preview of the key. Specified for map-like collection entries.
171
- */
172
- key?: ObjectPreview | undefined;
173
- /**
174
- * Preview of the value.
175
- */
176
- value: ObjectPreview;
177
- }
178
- /**
179
- * Object property descriptor.
180
- */
181
- interface PropertyDescriptor {
182
- /**
183
- * Property name or symbol description.
184
- */
185
- name: string;
186
- /**
187
- * The value associated with the property.
188
- */
189
- value?: RemoteObject | undefined;
190
- /**
191
- * True if the value associated with the property may be changed (data descriptors only).
192
- */
193
- writable?: boolean | undefined;
194
- /**
195
- * A function which serves as a getter for the property, or <code>undefined</code> if there is no getter (accessor descriptors only).
196
- */
197
- get?: RemoteObject | undefined;
198
- /**
199
- * A function which serves as a setter for the property, or <code>undefined</code> if there is no setter (accessor descriptors only).
200
- */
201
- set?: RemoteObject | undefined;
202
- /**
203
- * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
204
- */
205
- configurable: boolean;
206
- /**
207
- * True if this property shows up during enumeration of the properties on the corresponding object.
208
- */
209
- enumerable: boolean;
210
- /**
211
- * True if the result was thrown during the evaluation.
212
- */
213
- wasThrown?: boolean | undefined;
214
- /**
215
- * True if the property is owned for the object.
216
- */
217
- isOwn?: boolean | undefined;
218
- /**
219
- * Property symbol object, if the property is of the <code>symbol</code> type.
220
- */
221
- symbol?: RemoteObject | undefined;
222
- }
223
- /**
224
- * Object internal property descriptor. This property isn't normally visible in JavaScript code.
225
- */
226
- interface InternalPropertyDescriptor {
227
- /**
228
- * Conventional property name.
229
- */
230
- name: string;
231
- /**
232
- * The value associated with the property.
233
- */
234
- value?: RemoteObject | undefined;
235
- }
236
- /**
237
- * Represents function call argument. Either remote object id <code>objectId</code>, primitive <code>value</code>, unserializable primitive value or neither of (for undefined) them should be specified.
238
- */
239
- interface CallArgument {
240
- /**
241
- * Primitive value or serializable javascript object.
242
- */
243
- value?: any;
244
- /**
245
- * Primitive value which can not be JSON-stringified.
246
- */
247
- unserializableValue?: UnserializableValue | undefined;
248
- /**
249
- * Remote object handle.
250
- */
251
- objectId?: RemoteObjectId | undefined;
252
- }
253
- /**
254
- * Id of an execution context.
255
- */
256
- type ExecutionContextId = number;
257
- /**
258
- * Description of an isolated world.
259
- */
260
- interface ExecutionContextDescription {
261
- /**
262
- * Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed.
263
- */
264
- id: ExecutionContextId;
265
- /**
266
- * Execution context origin.
267
- */
268
- origin: string;
269
- /**
270
- * Human readable name describing given context.
271
- */
272
- name: string;
273
- /**
274
- * Embedder-specific auxiliary data.
275
- */
276
- auxData?: {} | undefined;
277
- }
278
- /**
279
- * Detailed information about exception (or error) that was thrown during script compilation or execution.
280
- */
281
- interface ExceptionDetails {
282
- /**
283
- * Exception id.
284
- */
285
- exceptionId: number;
286
- /**
287
- * Exception text, which should be used together with exception object when available.
288
- */
289
- text: string;
290
- /**
291
- * Line number of the exception location (0-based).
292
- */
293
- lineNumber: number;
294
- /**
295
- * Column number of the exception location (0-based).
296
- */
297
- columnNumber: number;
298
- /**
299
- * Script ID of the exception location.
300
- */
301
- scriptId?: ScriptId | undefined;
302
- /**
303
- * URL of the exception location, to be used when the script was not reported.
304
- */
305
- url?: string | undefined;
306
- /**
307
- * JavaScript stack trace if available.
308
- */
309
- stackTrace?: StackTrace | undefined;
310
- /**
311
- * Exception object if available.
312
- */
313
- exception?: RemoteObject | undefined;
314
- /**
315
- * Identifier of the context where exception happened.
316
- */
317
- executionContextId?: ExecutionContextId | undefined;
318
- }
319
- /**
320
- * Number of milliseconds since epoch.
321
- */
322
- type Timestamp = number;
323
- /**
324
- * Stack entry for runtime errors and assertions.
325
- */
326
- interface CallFrame {
327
- /**
328
- * JavaScript function name.
329
- */
330
- functionName: string;
331
- /**
332
- * JavaScript script id.
333
- */
334
- scriptId: ScriptId;
335
- /**
336
- * JavaScript script name or url.
337
- */
338
- url: string;
339
- /**
340
- * JavaScript script line number (0-based).
341
- */
342
- lineNumber: number;
343
- /**
344
- * JavaScript script column number (0-based).
345
- */
346
- columnNumber: number;
347
- }
348
- /**
349
- * Call frames for assertions or error messages.
350
- */
351
- interface StackTrace {
352
- /**
353
- * String label of this stack trace. For async traces this may be a name of the function that initiated the async call.
354
- */
355
- description?: string | undefined;
356
- /**
357
- * JavaScript function name.
358
- */
359
- callFrames: CallFrame[];
360
- /**
361
- * Asynchronous JavaScript stack trace that preceded this stack, if available.
362
- */
363
- parent?: StackTrace | undefined;
364
- /**
365
- * Asynchronous JavaScript stack trace that preceded this stack, if available.
366
- * @experimental
367
- */
368
- parentId?: StackTraceId | undefined;
369
- }
370
- /**
371
- * Unique identifier of current debugger.
372
- * @experimental
373
- */
374
- type UniqueDebuggerId = string;
375
- /**
376
- * If <code>debuggerId</code> is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See <code>Runtime.StackTrace</code> and <code>Debugger.paused</code> for usages.
377
- * @experimental
378
- */
379
- interface StackTraceId {
380
- id: string;
381
- debuggerId?: UniqueDebuggerId | undefined;
382
- }
383
- interface EvaluateParameterType {
384
- /**
385
- * Expression to evaluate.
386
- */
387
- expression: string;
388
- /**
389
- * Symbolic group name that can be used to release multiple objects.
390
- */
391
- objectGroup?: string | undefined;
392
- /**
393
- * Determines whether Command Line API should be available during the evaluation.
394
- */
395
- includeCommandLineAPI?: boolean | undefined;
396
- /**
397
- * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
398
- */
399
- silent?: boolean | undefined;
400
- /**
401
- * 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.
402
- */
403
- contextId?: ExecutionContextId | undefined;
404
- /**
405
- * Whether the result is expected to be a JSON object that should be sent by value.
406
- */
407
- returnByValue?: boolean | undefined;
408
- /**
409
- * Whether preview should be generated for the result.
410
- * @experimental
411
- */
412
- generatePreview?: boolean | undefined;
413
- /**
414
- * Whether execution should be treated as initiated by user in the UI.
415
- */
416
- userGesture?: boolean | undefined;
417
- /**
418
- * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
419
- */
420
- awaitPromise?: boolean | undefined;
421
- }
422
- interface AwaitPromiseParameterType {
423
- /**
424
- * Identifier of the promise.
425
- */
426
- promiseObjectId: RemoteObjectId;
427
- /**
428
- * Whether the result is expected to be a JSON object that should be sent by value.
429
- */
430
- returnByValue?: boolean | undefined;
431
- /**
432
- * Whether preview should be generated for the result.
433
- */
434
- generatePreview?: boolean | undefined;
435
- }
436
- interface CallFunctionOnParameterType {
437
- /**
438
- * Declaration of the function to call.
439
- */
440
- functionDeclaration: string;
441
- /**
442
- * Identifier of the object to call function on. Either objectId or executionContextId should be specified.
443
- */
444
- objectId?: RemoteObjectId | undefined;
445
- /**
446
- * Call arguments. All call arguments must belong to the same JavaScript world as the target object.
447
- */
448
- arguments?: CallArgument[] | undefined;
449
- /**
450
- * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
451
- */
452
- silent?: boolean | undefined;
453
- /**
454
- * Whether the result is expected to be a JSON object which should be sent by value.
455
- */
456
- returnByValue?: boolean | undefined;
457
- /**
458
- * Whether preview should be generated for the result.
459
- * @experimental
460
- */
461
- generatePreview?: boolean | undefined;
462
- /**
463
- * Whether execution should be treated as initiated by user in the UI.
464
- */
465
- userGesture?: boolean | undefined;
466
- /**
467
- * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
468
- */
469
- awaitPromise?: boolean | undefined;
470
- /**
471
- * Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified.
472
- */
473
- executionContextId?: ExecutionContextId | undefined;
474
- /**
475
- * 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.
476
- */
477
- objectGroup?: string | undefined;
478
- }
479
- interface GetPropertiesParameterType {
480
- /**
481
- * Identifier of the object to return properties for.
482
- */
483
- objectId: RemoteObjectId;
484
- /**
485
- * If true, returns properties belonging only to the element itself, not to its prototype chain.
486
- */
487
- ownProperties?: boolean | undefined;
488
- /**
489
- * If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.
490
- * @experimental
491
- */
492
- accessorPropertiesOnly?: boolean | undefined;
493
- /**
494
- * Whether preview should be generated for the results.
495
- * @experimental
496
- */
497
- generatePreview?: boolean | undefined;
498
- }
499
- interface ReleaseObjectParameterType {
500
- /**
501
- * Identifier of the object to release.
502
- */
503
- objectId: RemoteObjectId;
504
- }
505
- interface ReleaseObjectGroupParameterType {
506
- /**
507
- * Symbolic object group name.
508
- */
509
- objectGroup: string;
510
- }
511
- interface SetCustomObjectFormatterEnabledParameterType {
512
- enabled: boolean;
513
- }
514
- interface CompileScriptParameterType {
515
- /**
516
- * Expression to compile.
517
- */
518
- expression: string;
519
- /**
520
- * Source url to be set for the script.
521
- */
522
- sourceURL: string;
523
- /**
524
- * Specifies whether the compiled script should be persisted.
525
- */
526
- persistScript: boolean;
527
- /**
528
- * 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.
529
- */
530
- executionContextId?: ExecutionContextId | undefined;
531
- }
532
- interface RunScriptParameterType {
533
- /**
534
- * Id of the script to run.
535
- */
536
- scriptId: ScriptId;
537
- /**
538
- * 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.
539
- */
540
- executionContextId?: ExecutionContextId | undefined;
541
- /**
542
- * Symbolic group name that can be used to release multiple objects.
543
- */
544
- objectGroup?: string | undefined;
545
- /**
546
- * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
547
- */
548
- silent?: boolean | undefined;
549
- /**
550
- * Determines whether Command Line API should be available during the evaluation.
551
- */
552
- includeCommandLineAPI?: boolean | undefined;
553
- /**
554
- * Whether the result is expected to be a JSON object which should be sent by value.
555
- */
556
- returnByValue?: boolean | undefined;
557
- /**
558
- * Whether preview should be generated for the result.
559
- */
560
- generatePreview?: boolean | undefined;
561
- /**
562
- * Whether execution should <code>await</code> for resulting value and return once awaited promise is resolved.
563
- */
564
- awaitPromise?: boolean | undefined;
565
- }
566
- interface QueryObjectsParameterType {
567
- /**
568
- * Identifier of the prototype to return objects for.
569
- */
570
- prototypeObjectId: RemoteObjectId;
571
- }
572
- interface GlobalLexicalScopeNamesParameterType {
573
- /**
574
- * Specifies in which execution context to lookup global scope variables.
575
- */
576
- executionContextId?: ExecutionContextId | undefined;
577
- }
578
- interface EvaluateReturnType {
579
- /**
580
- * Evaluation result.
581
- */
582
- result: RemoteObject;
583
- /**
584
- * Exception details.
585
- */
586
- exceptionDetails?: ExceptionDetails | undefined;
587
- }
588
- interface AwaitPromiseReturnType {
589
- /**
590
- * Promise result. Will contain rejected value if promise was rejected.
591
- */
592
- result: RemoteObject;
593
- /**
594
- * Exception details if stack strace is available.
595
- */
596
- exceptionDetails?: ExceptionDetails | undefined;
597
- }
598
- interface CallFunctionOnReturnType {
599
- /**
600
- * Call result.
601
- */
602
- result: RemoteObject;
603
- /**
604
- * Exception details.
605
- */
606
- exceptionDetails?: ExceptionDetails | undefined;
607
- }
608
- interface GetPropertiesReturnType {
609
- /**
610
- * Object properties.
611
- */
612
- result: PropertyDescriptor[];
613
- /**
614
- * Internal object properties (only of the element itself).
615
- */
616
- internalProperties?: InternalPropertyDescriptor[] | undefined;
617
- /**
618
- * Exception details.
619
- */
620
- exceptionDetails?: ExceptionDetails | undefined;
621
- }
622
- interface CompileScriptReturnType {
623
- /**
624
- * Id of the script.
625
- */
626
- scriptId?: ScriptId | undefined;
627
- /**
628
- * Exception details.
629
- */
630
- exceptionDetails?: ExceptionDetails | undefined;
631
- }
632
- interface RunScriptReturnType {
633
- /**
634
- * Run result.
635
- */
636
- result: RemoteObject;
637
- /**
638
- * Exception details.
639
- */
640
- exceptionDetails?: ExceptionDetails | undefined;
641
- }
642
- interface QueryObjectsReturnType {
643
- /**
644
- * Array with objects.
645
- */
646
- objects: RemoteObject;
647
- }
648
- interface GlobalLexicalScopeNamesReturnType {
649
- names: string[];
650
- }
651
- interface ExecutionContextCreatedEventDataType {
652
- /**
653
- * A newly created execution context.
654
- */
655
- context: ExecutionContextDescription;
656
- }
657
- interface ExecutionContextDestroyedEventDataType {
658
- /**
659
- * Id of the destroyed context
660
- */
661
- executionContextId: ExecutionContextId;
662
- }
663
- interface ExceptionThrownEventDataType {
664
- /**
665
- * Timestamp of the exception.
666
- */
667
- timestamp: Timestamp;
668
- exceptionDetails: ExceptionDetails;
669
- }
670
- interface ExceptionRevokedEventDataType {
671
- /**
672
- * Reason describing why exception was revoked.
673
- */
674
- reason: string;
675
- /**
676
- * The id of revoked exception, as reported in <code>exceptionThrown</code>.
677
- */
678
- exceptionId: number;
679
- }
680
- interface ConsoleAPICalledEventDataType {
681
- /**
682
- * Type of the call.
683
- */
684
- type: string;
685
- /**
686
- * Call arguments.
687
- */
688
- args: RemoteObject[];
689
- /**
690
- * Identifier of the context where the call was made.
691
- */
692
- executionContextId: ExecutionContextId;
693
- /**
694
- * Call timestamp.
695
- */
696
- timestamp: Timestamp;
697
- /**
698
- * Stack trace captured when the call was made.
699
- */
700
- stackTrace?: StackTrace | undefined;
701
- /**
702
- * 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.
703
- * @experimental
704
- */
705
- context?: string | undefined;
706
- }
707
- interface InspectRequestedEventDataType {
708
- object: RemoteObject;
709
- hints: {};
710
- }
711
- }
712
- namespace Debugger {
713
- /**
714
- * Breakpoint identifier.
715
- */
716
- type BreakpointId = string;
717
- /**
718
- * Call frame identifier.
719
- */
720
- type CallFrameId = string;
721
- /**
722
- * Location in the source code.
723
- */
724
- interface Location {
725
- /**
726
- * Script identifier as reported in the <code>Debugger.scriptParsed</code>.
727
- */
728
- scriptId: Runtime.ScriptId;
729
- /**
730
- * Line number in the script (0-based).
731
- */
732
- lineNumber: number;
733
- /**
734
- * Column number in the script (0-based).
735
- */
736
- columnNumber?: number | undefined;
737
- }
738
- /**
739
- * Location in the source code.
740
- * @experimental
741
- */
742
- interface ScriptPosition {
743
- lineNumber: number;
744
- columnNumber: number;
745
- }
746
- /**
747
- * JavaScript call frame. Array of call frames form the call stack.
748
- */
749
- interface CallFrame {
750
- /**
751
- * Call frame identifier. This identifier is only valid while the virtual machine is paused.
752
- */
753
- callFrameId: CallFrameId;
754
- /**
755
- * Name of the JavaScript function called on this call frame.
756
- */
757
- functionName: string;
758
- /**
759
- * Location in the source code.
760
- */
761
- functionLocation?: Location | undefined;
762
- /**
763
- * Location in the source code.
764
- */
765
- location: Location;
766
- /**
767
- * JavaScript script name or url.
768
- */
769
- url: string;
770
- /**
771
- * Scope chain for this call frame.
772
- */
773
- scopeChain: Scope[];
774
- /**
775
- * <code>this</code> object for this call frame.
776
- */
777
- this: Runtime.RemoteObject;
778
- /**
779
- * The value being returned, if the function is at return point.
780
- */
781
- returnValue?: Runtime.RemoteObject | undefined;
782
- }
783
- /**
784
- * Scope description.
785
- */
786
- interface Scope {
787
- /**
788
- * Scope type.
789
- */
790
- type: string;
791
- /**
792
- * Object representing the scope. For <code>global</code> and <code>with</code> scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
793
- */
794
- object: Runtime.RemoteObject;
795
- name?: string | undefined;
796
- /**
797
- * Location in the source code where scope starts
798
- */
799
- startLocation?: Location | undefined;
800
- /**
801
- * Location in the source code where scope ends
802
- */
803
- endLocation?: Location | undefined;
804
- }
805
- /**
806
- * Search match for resource.
807
- */
808
- interface SearchMatch {
809
- /**
810
- * Line number in resource content.
811
- */
812
- lineNumber: number;
813
- /**
814
- * Line with match content.
815
- */
816
- lineContent: string;
817
- }
818
- interface BreakLocation {
819
- /**
820
- * Script identifier as reported in the <code>Debugger.scriptParsed</code>.
821
- */
822
- scriptId: Runtime.ScriptId;
823
- /**
824
- * Line number in the script (0-based).
825
- */
826
- lineNumber: number;
827
- /**
828
- * Column number in the script (0-based).
829
- */
830
- columnNumber?: number | undefined;
831
- type?: string | undefined;
832
- }
833
- interface SetBreakpointsActiveParameterType {
834
- /**
835
- * New value for breakpoints active state.
836
- */
837
- active: boolean;
838
- }
839
- interface SetSkipAllPausesParameterType {
840
- /**
841
- * New value for skip pauses state.
842
- */
843
- skip: boolean;
844
- }
845
- interface SetBreakpointByUrlParameterType {
846
- /**
847
- * Line number to set breakpoint at.
848
- */
849
- lineNumber: number;
850
- /**
851
- * URL of the resources to set breakpoint on.
852
- */
853
- url?: string | undefined;
854
- /**
855
- * Regex pattern for the URLs of the resources to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be specified.
856
- */
857
- urlRegex?: string | undefined;
858
- /**
859
- * Script hash of the resources to set breakpoint on.
860
- */
861
- scriptHash?: string | undefined;
862
- /**
863
- * Offset in the line to set breakpoint at.
864
- */
865
- columnNumber?: number | undefined;
866
- /**
867
- * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
868
- */
869
- condition?: string | undefined;
870
- }
871
- interface SetBreakpointParameterType {
872
- /**
873
- * Location to set breakpoint in.
874
- */
875
- location: Location;
876
- /**
877
- * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
878
- */
879
- condition?: string | undefined;
880
- }
881
- interface RemoveBreakpointParameterType {
882
- breakpointId: BreakpointId;
883
- }
884
- interface GetPossibleBreakpointsParameterType {
885
- /**
886
- * Start of range to search possible breakpoint locations in.
887
- */
888
- start: Location;
889
- /**
890
- * End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.
891
- */
892
- end?: Location | undefined;
893
- /**
894
- * Only consider locations which are in the same (non-nested) function as start.
895
- */
896
- restrictToFunction?: boolean | undefined;
897
- }
898
- interface ContinueToLocationParameterType {
899
- /**
900
- * Location to continue to.
901
- */
902
- location: Location;
903
- targetCallFrames?: string | undefined;
904
- }
905
- interface PauseOnAsyncCallParameterType {
906
- /**
907
- * Debugger will pause when async call with given stack trace is started.
908
- */
909
- parentStackTraceId: Runtime.StackTraceId;
910
- }
911
- interface StepIntoParameterType {
912
- /**
913
- * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause.
914
- * @experimental
915
- */
916
- breakOnAsyncCall?: boolean | undefined;
917
- }
918
- interface GetStackTraceParameterType {
919
- stackTraceId: Runtime.StackTraceId;
920
- }
921
- interface SearchInContentParameterType {
922
- /**
923
- * Id of the script to search in.
924
- */
925
- scriptId: Runtime.ScriptId;
926
- /**
927
- * String to search for.
928
- */
929
- query: string;
930
- /**
931
- * If true, search is case sensitive.
932
- */
933
- caseSensitive?: boolean | undefined;
934
- /**
935
- * If true, treats string parameter as regex.
936
- */
937
- isRegex?: boolean | undefined;
938
- }
939
- interface SetScriptSourceParameterType {
940
- /**
941
- * Id of the script to edit.
942
- */
943
- scriptId: Runtime.ScriptId;
944
- /**
945
- * New content of the script.
946
- */
947
- scriptSource: string;
948
- /**
949
- * If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.
950
- */
951
- dryRun?: boolean | undefined;
952
- }
953
- interface RestartFrameParameterType {
954
- /**
955
- * Call frame identifier to evaluate on.
956
- */
957
- callFrameId: CallFrameId;
958
- }
959
- interface GetScriptSourceParameterType {
960
- /**
961
- * Id of the script to get source for.
962
- */
963
- scriptId: Runtime.ScriptId;
964
- }
965
- interface SetPauseOnExceptionsParameterType {
966
- /**
967
- * Pause on exceptions mode.
968
- */
969
- state: string;
970
- }
971
- interface EvaluateOnCallFrameParameterType {
972
- /**
973
- * Call frame identifier to evaluate on.
974
- */
975
- callFrameId: CallFrameId;
976
- /**
977
- * Expression to evaluate.
978
- */
979
- expression: string;
980
- /**
981
- * String object group name to put result into (allows rapid releasing resulting object handles using <code>releaseObjectGroup</code>).
982
- */
983
- objectGroup?: string | undefined;
984
- /**
985
- * Specifies whether command line API should be available to the evaluated expression, defaults to false.
986
- */
987
- includeCommandLineAPI?: boolean | undefined;
988
- /**
989
- * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides <code>setPauseOnException</code> state.
990
- */
991
- silent?: boolean | undefined;
992
- /**
993
- * Whether the result is expected to be a JSON object that should be sent by value.
994
- */
995
- returnByValue?: boolean | undefined;
996
- /**
997
- * Whether preview should be generated for the result.
998
- * @experimental
999
- */
1000
- generatePreview?: boolean | undefined;
1001
- /**
1002
- * Whether to throw an exception if side effect cannot be ruled out during evaluation.
1003
- */
1004
- throwOnSideEffect?: boolean | undefined;
1005
- }
1006
- interface SetVariableValueParameterType {
1007
- /**
1008
- * 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.
1009
- */
1010
- scopeNumber: number;
1011
- /**
1012
- * Variable name.
1013
- */
1014
- variableName: string;
1015
- /**
1016
- * New variable value.
1017
- */
1018
- newValue: Runtime.CallArgument;
1019
- /**
1020
- * Id of callframe that holds variable.
1021
- */
1022
- callFrameId: CallFrameId;
1023
- }
1024
- interface SetReturnValueParameterType {
1025
- /**
1026
- * New return value.
1027
- */
1028
- newValue: Runtime.CallArgument;
1029
- }
1030
- interface SetAsyncCallStackDepthParameterType {
1031
- /**
1032
- * Maximum depth of async call stacks. Setting to <code>0</code> will effectively disable collecting async call stacks (default).
1033
- */
1034
- maxDepth: number;
1035
- }
1036
- interface SetBlackboxPatternsParameterType {
1037
- /**
1038
- * Array of regexps that will be used to check script url for blackbox state.
1039
- */
1040
- patterns: string[];
1041
- }
1042
- interface SetBlackboxedRangesParameterType {
1043
- /**
1044
- * Id of the script.
1045
- */
1046
- scriptId: Runtime.ScriptId;
1047
- positions: ScriptPosition[];
1048
- }
1049
- interface EnableReturnType {
1050
- /**
1051
- * Unique identifier of the debugger.
1052
- * @experimental
1053
- */
1054
- debuggerId: Runtime.UniqueDebuggerId;
1055
- }
1056
- interface SetBreakpointByUrlReturnType {
1057
- /**
1058
- * Id of the created breakpoint for further reference.
1059
- */
1060
- breakpointId: BreakpointId;
1061
- /**
1062
- * List of the locations this breakpoint resolved into upon addition.
1063
- */
1064
- locations: Location[];
1065
- }
1066
- interface SetBreakpointReturnType {
1067
- /**
1068
- * Id of the created breakpoint for further reference.
1069
- */
1070
- breakpointId: BreakpointId;
1071
- /**
1072
- * Location this breakpoint resolved into.
1073
- */
1074
- actualLocation: Location;
1075
- }
1076
- interface GetPossibleBreakpointsReturnType {
1077
- /**
1078
- * List of the possible breakpoint locations.
1079
- */
1080
- locations: BreakLocation[];
1081
- }
1082
- interface GetStackTraceReturnType {
1083
- stackTrace: Runtime.StackTrace;
1084
- }
1085
- interface SearchInContentReturnType {
1086
- /**
1087
- * List of search matches.
1088
- */
1089
- result: SearchMatch[];
1090
- }
1091
- interface SetScriptSourceReturnType {
1092
- /**
1093
- * New stack trace in case editing has happened while VM was stopped.
1094
- */
1095
- callFrames?: CallFrame[] | undefined;
1096
- /**
1097
- * Whether current call stack was modified after applying the changes.
1098
- */
1099
- stackChanged?: boolean | undefined;
1100
- /**
1101
- * Async stack trace, if any.
1102
- */
1103
- asyncStackTrace?: Runtime.StackTrace | undefined;
1104
- /**
1105
- * Async stack trace, if any.
1106
- * @experimental
1107
- */
1108
- asyncStackTraceId?: Runtime.StackTraceId | undefined;
1109
- /**
1110
- * Exception details if any.
1111
- */
1112
- exceptionDetails?: Runtime.ExceptionDetails | undefined;
1113
- }
1114
- interface RestartFrameReturnType {
1115
- /**
1116
- * New stack trace.
1117
- */
1118
- callFrames: CallFrame[];
1119
- /**
1120
- * Async stack trace, if any.
1121
- */
1122
- asyncStackTrace?: Runtime.StackTrace | undefined;
1123
- /**
1124
- * Async stack trace, if any.
1125
- * @experimental
1126
- */
1127
- asyncStackTraceId?: Runtime.StackTraceId | undefined;
1128
- }
1129
- interface GetScriptSourceReturnType {
1130
- /**
1131
- * Script source.
1132
- */
1133
- scriptSource: string;
1134
- }
1135
- interface EvaluateOnCallFrameReturnType {
1136
- /**
1137
- * Object wrapper for the evaluation result.
1138
- */
1139
- result: Runtime.RemoteObject;
1140
- /**
1141
- * Exception details.
1142
- */
1143
- exceptionDetails?: Runtime.ExceptionDetails | undefined;
1144
- }
1145
- interface ScriptParsedEventDataType {
1146
- /**
1147
- * Identifier of the script parsed.
1148
- */
1149
- scriptId: Runtime.ScriptId;
1150
- /**
1151
- * URL or name of the script parsed (if any).
1152
- */
1153
- url: string;
1154
- /**
1155
- * Line offset of the script within the resource with given URL (for script tags).
1156
- */
1157
- startLine: number;
1158
- /**
1159
- * Column offset of the script within the resource with given URL.
1160
- */
1161
- startColumn: number;
1162
- /**
1163
- * Last line of the script.
1164
- */
1165
- endLine: number;
1166
- /**
1167
- * Length of the last line of the script.
1168
- */
1169
- endColumn: number;
1170
- /**
1171
- * Specifies script creation context.
1172
- */
1173
- executionContextId: Runtime.ExecutionContextId;
1174
- /**
1175
- * Content hash of the script.
1176
- */
1177
- hash: string;
1178
- /**
1179
- * Embedder-specific auxiliary data.
1180
- */
1181
- executionContextAuxData?: {} | undefined;
1182
- /**
1183
- * True, if this script is generated as a result of the live edit operation.
1184
- * @experimental
1185
- */
1186
- isLiveEdit?: boolean | undefined;
1187
- /**
1188
- * URL of source map associated with script (if any).
1189
- */
1190
- sourceMapURL?: string | undefined;
1191
- /**
1192
- * True, if this script has sourceURL.
1193
- */
1194
- hasSourceURL?: boolean | undefined;
1195
- /**
1196
- * True, if this script is ES6 module.
1197
- */
1198
- isModule?: boolean | undefined;
1199
- /**
1200
- * This script length.
1201
- */
1202
- length?: number | undefined;
1203
- /**
1204
- * JavaScript top stack frame of where the script parsed event was triggered if available.
1205
- * @experimental
1206
- */
1207
- stackTrace?: Runtime.StackTrace | undefined;
1208
- }
1209
- interface ScriptFailedToParseEventDataType {
1210
- /**
1211
- * Identifier of the script parsed.
1212
- */
1213
- scriptId: Runtime.ScriptId;
1214
- /**
1215
- * URL or name of the script parsed (if any).
1216
- */
1217
- url: string;
1218
- /**
1219
- * Line offset of the script within the resource with given URL (for script tags).
1220
- */
1221
- startLine: number;
1222
- /**
1223
- * Column offset of the script within the resource with given URL.
1224
- */
1225
- startColumn: number;
1226
- /**
1227
- * Last line of the script.
1228
- */
1229
- endLine: number;
1230
- /**
1231
- * Length of the last line of the script.
1232
- */
1233
- endColumn: number;
1234
- /**
1235
- * Specifies script creation context.
1236
- */
1237
- executionContextId: Runtime.ExecutionContextId;
1238
- /**
1239
- * Content hash of the script.
1240
- */
1241
- hash: string;
1242
- /**
1243
- * Embedder-specific auxiliary data.
1244
- */
1245
- executionContextAuxData?: {} | undefined;
1246
- /**
1247
- * URL of source map associated with script (if any).
1248
- */
1249
- sourceMapURL?: string | undefined;
1250
- /**
1251
- * True, if this script has sourceURL.
1252
- */
1253
- hasSourceURL?: boolean | undefined;
1254
- /**
1255
- * True, if this script is ES6 module.
1256
- */
1257
- isModule?: boolean | undefined;
1258
- /**
1259
- * This script length.
1260
- */
1261
- length?: number | undefined;
1262
- /**
1263
- * JavaScript top stack frame of where the script parsed event was triggered if available.
1264
- * @experimental
1265
- */
1266
- stackTrace?: Runtime.StackTrace | undefined;
1267
- }
1268
- interface BreakpointResolvedEventDataType {
1269
- /**
1270
- * Breakpoint unique identifier.
1271
- */
1272
- breakpointId: BreakpointId;
1273
- /**
1274
- * Actual breakpoint location.
1275
- */
1276
- location: Location;
1277
- }
1278
- interface PausedEventDataType {
1279
- /**
1280
- * Call stack the virtual machine stopped on.
1281
- */
1282
- callFrames: CallFrame[];
1283
- /**
1284
- * Pause reason.
1285
- */
1286
- reason: string;
1287
- /**
1288
- * Object containing break-specific auxiliary properties.
1289
- */
1290
- data?: {} | undefined;
1291
- /**
1292
- * Hit breakpoints IDs
1293
- */
1294
- hitBreakpoints?: string[] | undefined;
1295
- /**
1296
- * Async stack trace, if any.
1297
- */
1298
- asyncStackTrace?: Runtime.StackTrace | undefined;
1299
- /**
1300
- * Async stack trace, if any.
1301
- * @experimental
1302
- */
1303
- asyncStackTraceId?: Runtime.StackTraceId | undefined;
1304
- /**
1305
- * Just scheduled async call will have this stack trace as parent stack during async execution. This field is available only after <code>Debugger.stepInto</code> call with <code>breakOnAsynCall</code> flag.
1306
- * @experimental
1307
- */
1308
- asyncCallStackTraceId?: Runtime.StackTraceId | undefined;
1309
- }
1310
- }
1311
- namespace Console {
1312
- /**
1313
- * Console message.
1314
- */
1315
- interface ConsoleMessage {
1316
- /**
1317
- * Message source.
1318
- */
1319
- source: string;
1320
- /**
1321
- * Message severity.
1322
- */
1323
- level: string;
1324
- /**
1325
- * Message text.
1326
- */
1327
- text: string;
1328
- /**
1329
- * URL of the message origin.
1330
- */
1331
- url?: string | undefined;
1332
- /**
1333
- * Line number in the resource that generated this message (1-based).
1334
- */
1335
- line?: number | undefined;
1336
- /**
1337
- * Column number in the resource that generated this message (1-based).
1338
- */
1339
- column?: number | undefined;
1340
- }
1341
- interface MessageAddedEventDataType {
1342
- /**
1343
- * Console message that has been added.
1344
- */
1345
- message: ConsoleMessage;
1346
- }
1347
- }
1348
- namespace Profiler {
1349
- /**
1350
- * Profile node. Holds callsite information, execution statistics and child nodes.
1351
- */
1352
- interface ProfileNode {
1353
- /**
1354
- * Unique id of the node.
1355
- */
1356
- id: number;
1357
- /**
1358
- * Function location.
1359
- */
1360
- callFrame: Runtime.CallFrame;
1361
- /**
1362
- * Number of samples where this node was on top of the call stack.
1363
- */
1364
- hitCount?: number | undefined;
1365
- /**
1366
- * Child node ids.
1367
- */
1368
- children?: number[] | undefined;
1369
- /**
1370
- * The reason of being not optimized. The function may be deoptimized or marked as don't optimize.
1371
- */
1372
- deoptReason?: string | undefined;
1373
- /**
1374
- * An array of source position ticks.
1375
- */
1376
- positionTicks?: PositionTickInfo[] | undefined;
1377
- }
1378
- /**
1379
- * Profile.
1380
- */
1381
- interface Profile {
1382
- /**
1383
- * The list of profile nodes. First item is the root node.
1384
- */
1385
- nodes: ProfileNode[];
1386
- /**
1387
- * Profiling start timestamp in microseconds.
1388
- */
1389
- startTime: number;
1390
- /**
1391
- * Profiling end timestamp in microseconds.
1392
- */
1393
- endTime: number;
1394
- /**
1395
- * Ids of samples top nodes.
1396
- */
1397
- samples?: number[] | undefined;
1398
- /**
1399
- * Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime.
1400
- */
1401
- timeDeltas?: number[] | undefined;
1402
- }
1403
- /**
1404
- * Specifies a number of samples attributed to a certain source position.
1405
- */
1406
- interface PositionTickInfo {
1407
- /**
1408
- * Source line number (1-based).
1409
- */
1410
- line: number;
1411
- /**
1412
- * Number of samples attributed to the source line.
1413
- */
1414
- ticks: number;
1415
- }
1416
- /**
1417
- * Coverage data for a source range.
1418
- */
1419
- interface CoverageRange {
1420
- /**
1421
- * JavaScript script source offset for the range start.
1422
- */
1423
- startOffset: number;
1424
- /**
1425
- * JavaScript script source offset for the range end.
1426
- */
1427
- endOffset: number;
1428
- /**
1429
- * Collected execution count of the source range.
1430
- */
1431
- count: number;
1432
- }
1433
- /**
1434
- * Coverage data for a JavaScript function.
1435
- */
1436
- interface FunctionCoverage {
1437
- /**
1438
- * JavaScript function name.
1439
- */
1440
- functionName: string;
1441
- /**
1442
- * Source ranges inside the function with coverage data.
1443
- */
1444
- ranges: CoverageRange[];
1445
- /**
1446
- * Whether coverage data for this function has block granularity.
1447
- */
1448
- isBlockCoverage: boolean;
1449
- }
1450
- /**
1451
- * Coverage data for a JavaScript script.
1452
- */
1453
- interface ScriptCoverage {
1454
- /**
1455
- * JavaScript script id.
1456
- */
1457
- scriptId: Runtime.ScriptId;
1458
- /**
1459
- * JavaScript script name or url.
1460
- */
1461
- url: string;
1462
- /**
1463
- * Functions contained in the script that has coverage data.
1464
- */
1465
- functions: FunctionCoverage[];
1466
- }
1467
- /**
1468
- * Describes a type collected during runtime.
1469
- * @experimental
1470
- */
1471
- interface TypeObject {
1472
- /**
1473
- * Name of a type collected with type profiling.
1474
- */
1475
- name: string;
1476
- }
1477
- /**
1478
- * Source offset and types for a parameter or return value.
1479
- * @experimental
1480
- */
1481
- interface TypeProfileEntry {
1482
- /**
1483
- * Source offset of the parameter or end of function for return values.
1484
- */
1485
- offset: number;
1486
- /**
1487
- * The types for this parameter or return value.
1488
- */
1489
- types: TypeObject[];
1490
- }
1491
- /**
1492
- * Type profile data collected during runtime for a JavaScript script.
1493
- * @experimental
1494
- */
1495
- interface ScriptTypeProfile {
1496
- /**
1497
- * JavaScript script id.
1498
- */
1499
- scriptId: Runtime.ScriptId;
1500
- /**
1501
- * JavaScript script name or url.
1502
- */
1503
- url: string;
1504
- /**
1505
- * Type profile entries for parameters and return values of the functions in the script.
1506
- */
1507
- entries: TypeProfileEntry[];
1508
- }
1509
- interface SetSamplingIntervalParameterType {
1510
- /**
1511
- * New sampling interval in microseconds.
1512
- */
1513
- interval: number;
1514
- }
1515
- interface StartPreciseCoverageParameterType {
1516
- /**
1517
- * Collect accurate call counts beyond simple 'covered' or 'not covered'.
1518
- */
1519
- callCount?: boolean | undefined;
1520
- /**
1521
- * Collect block-based coverage.
1522
- */
1523
- detailed?: boolean | undefined;
1524
- }
1525
- interface StopReturnType {
1526
- /**
1527
- * Recorded profile.
1528
- */
1529
- profile: Profile;
1530
- }
1531
- interface TakePreciseCoverageReturnType {
1532
- /**
1533
- * Coverage data for the current isolate.
1534
- */
1535
- result: ScriptCoverage[];
1536
- }
1537
- interface GetBestEffortCoverageReturnType {
1538
- /**
1539
- * Coverage data for the current isolate.
1540
- */
1541
- result: ScriptCoverage[];
1542
- }
1543
- interface TakeTypeProfileReturnType {
1544
- /**
1545
- * Type profile for all scripts since startTypeProfile() was turned on.
1546
- */
1547
- result: ScriptTypeProfile[];
1548
- }
1549
- interface ConsoleProfileStartedEventDataType {
1550
- id: string;
1551
- /**
1552
- * Location of console.profile().
1553
- */
1554
- location: Debugger.Location;
1555
- /**
1556
- * Profile title passed as an argument to console.profile().
1557
- */
1558
- title?: string | undefined;
1559
- }
1560
- interface ConsoleProfileFinishedEventDataType {
1561
- id: string;
1562
- /**
1563
- * Location of console.profileEnd().
1564
- */
1565
- location: Debugger.Location;
1566
- profile: Profile;
1567
- /**
1568
- * Profile title passed as an argument to console.profile().
1569
- */
1570
- title?: string | undefined;
1571
- }
1572
- }
1573
- namespace HeapProfiler {
1574
- /**
1575
- * Heap snapshot object id.
1576
- */
1577
- type HeapSnapshotObjectId = string;
1578
- /**
1579
- * Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes.
1580
- */
1581
- interface SamplingHeapProfileNode {
1582
- /**
1583
- * Function location.
1584
- */
1585
- callFrame: Runtime.CallFrame;
1586
- /**
1587
- * Allocations size in bytes for the node excluding children.
1588
- */
1589
- selfSize: number;
1590
- /**
1591
- * Child nodes.
1592
- */
1593
- children: SamplingHeapProfileNode[];
1594
- }
1595
- /**
1596
- * Profile.
1597
- */
1598
- interface SamplingHeapProfile {
1599
- head: SamplingHeapProfileNode;
1600
- }
1601
- interface StartTrackingHeapObjectsParameterType {
1602
- trackAllocations?: boolean | undefined;
1603
- }
1604
- interface StopTrackingHeapObjectsParameterType {
1605
- /**
1606
- * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped.
1607
- */
1608
- reportProgress?: boolean | undefined;
1609
- }
1610
- interface TakeHeapSnapshotParameterType {
1611
- /**
1612
- * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken.
1613
- */
1614
- reportProgress?: boolean | undefined;
1615
- }
1616
- interface GetObjectByHeapObjectIdParameterType {
1617
- objectId: HeapSnapshotObjectId;
1618
- /**
1619
- * Symbolic group name that can be used to release multiple objects.
1620
- */
1621
- objectGroup?: string | undefined;
1622
- }
1623
- interface AddInspectedHeapObjectParameterType {
1624
- /**
1625
- * Heap snapshot object id to be accessible by means of $x command line API.
1626
- */
1627
- heapObjectId: HeapSnapshotObjectId;
1628
- }
1629
- interface GetHeapObjectIdParameterType {
1630
- /**
1631
- * Identifier of the object to get heap object id for.
1632
- */
1633
- objectId: Runtime.RemoteObjectId;
1634
- }
1635
- interface StartSamplingParameterType {
1636
- /**
1637
- * Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes.
1638
- */
1639
- samplingInterval?: number | undefined;
1640
- }
1641
- interface GetObjectByHeapObjectIdReturnType {
1642
- /**
1643
- * Evaluation result.
1644
- */
1645
- result: Runtime.RemoteObject;
1646
- }
1647
- interface GetHeapObjectIdReturnType {
1648
- /**
1649
- * Id of the heap snapshot object corresponding to the passed remote object id.
1650
- */
1651
- heapSnapshotObjectId: HeapSnapshotObjectId;
1652
- }
1653
- interface StopSamplingReturnType {
1654
- /**
1655
- * Recorded sampling heap profile.
1656
- */
1657
- profile: SamplingHeapProfile;
1658
- }
1659
- interface GetSamplingProfileReturnType {
1660
- /**
1661
- * Return the sampling profile being collected.
1662
- */
1663
- profile: SamplingHeapProfile;
1664
- }
1665
- interface AddHeapSnapshotChunkEventDataType {
1666
- chunk: string;
1667
- }
1668
- interface ReportHeapSnapshotProgressEventDataType {
1669
- done: number;
1670
- total: number;
1671
- finished?: boolean | undefined;
1672
- }
1673
- interface LastSeenObjectIdEventDataType {
1674
- lastSeenObjectId: number;
1675
- timestamp: number;
1676
- }
1677
- interface HeapStatsUpdateEventDataType {
1678
- /**
1679
- * 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.
1680
- */
1681
- statsUpdate: number[];
1682
- }
1683
- }
1684
- namespace NodeTracing {
1685
- interface TraceConfig {
1686
- /**
1687
- * Controls how the trace buffer stores data.
1688
- */
1689
- recordMode?: string | undefined;
1690
- /**
1691
- * Included category filters.
1692
- */
1693
- includedCategories: string[];
1694
- }
1695
- interface StartParameterType {
1696
- traceConfig: TraceConfig;
1697
- }
1698
- interface GetCategoriesReturnType {
1699
- /**
1700
- * A list of supported tracing categories.
1701
- */
1702
- categories: string[];
1703
- }
1704
- interface DataCollectedEventDataType {
1705
- value: Array<{}>;
1706
- }
1707
- }
1708
- namespace NodeWorker {
1709
- type WorkerID = string;
1710
- /**
1711
- * Unique identifier of attached debugging session.
1712
- */
1713
- type SessionID = string;
1714
- interface WorkerInfo {
1715
- workerId: WorkerID;
1716
- type: string;
1717
- title: string;
1718
- url: string;
1719
- }
1720
- interface SendMessageToWorkerParameterType {
1721
- message: string;
1722
- /**
1723
- * Identifier of the session.
1724
- */
1725
- sessionId: SessionID;
1726
- }
1727
- interface EnableParameterType {
1728
- /**
1729
- * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger`
1730
- * message to run them.
1731
- */
1732
- waitForDebuggerOnStart: boolean;
1733
- }
1734
- interface DetachParameterType {
1735
- sessionId: SessionID;
1736
- }
1737
- interface AttachedToWorkerEventDataType {
1738
- /**
1739
- * Identifier assigned to the session used to send/receive messages.
1740
- */
1741
- sessionId: SessionID;
1742
- workerInfo: WorkerInfo;
1743
- waitingForDebugger: boolean;
1744
- }
1745
- interface DetachedFromWorkerEventDataType {
1746
- /**
1747
- * Detached session identifier.
1748
- */
1749
- sessionId: SessionID;
1750
- }
1751
- interface ReceivedMessageFromWorkerEventDataType {
1752
- /**
1753
- * Identifier of a session which sends a message.
1754
- */
1755
- sessionId: SessionID;
1756
- message: string;
1757
- }
1758
- }
1759
- namespace NodeRuntime {
1760
- interface NotifyWhenWaitingForDisconnectParameterType {
1761
- enabled: boolean;
1762
- }
1763
- }
1764
- /**
1765
- * The `inspector.Session` is used for dispatching messages to the V8 inspector
1766
- * back-end and receiving message responses and notifications.
1767
- */
1768
- class Session extends EventEmitter {
1769
- /**
1770
- * Create a new instance of the inspector.Session class.
1771
- * The inspector session needs to be connected through session.connect() before the messages can be dispatched to the inspector backend.
1772
- */
1773
- constructor();
1774
- /**
1775
- * Connects a session to the inspector back-end.
1776
- * @since v8.0.0
1777
- */
1778
- connect(): void;
1779
- /**
1780
- * Connects a session to the inspector back-end.
1781
- * An exception will be thrown if this API was not called on a Worker thread.
1782
- * @since v12.11.0
1783
- */
1784
- connectToMainThread(): void;
1785
- /**
1786
- * Immediately close the session. All pending message callbacks will be called
1787
- * with an error. `session.connect()` will need to be called to be able to send
1788
- * messages again. Reconnected session will lose all inspector state, such as
1789
- * enabled agents or configured breakpoints.
1790
- * @since v8.0.0
1791
- */
1792
- disconnect(): void;
1793
- /**
1794
- * Posts a message to the inspector back-end. `callback` will be notified when
1795
- * a response is received. `callback` is a function that accepts two optional
1796
- * arguments: error and message-specific result.
1797
- *
1798
- * ```js
1799
- * session.post('Runtime.evaluate', { expression: '2 + 2' },
1800
- * (error, { result }) => console.log(result));
1801
- * // Output: { type: 'number', value: 4, description: '4' }
1802
- * ```
1803
- *
1804
- * The latest version of the V8 inspector protocol is published on the [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/).
1805
- *
1806
- * Node.js inspector supports all the Chrome DevTools Protocol domains declared
1807
- * by V8\. Chrome DevTools Protocol domain provides an interface for interacting
1808
- * with one of the runtime agents used to inspect the application state and listen
1809
- * to the run-time events.
1810
- *
1811
- * ## Example usage
1812
- *
1813
- * Apart from the debugger, various V8 Profilers are available through the DevTools
1814
- * protocol.
1815
- * @since v8.0.0
1816
- */
1817
- post(method: string, params?: {}, callback?: (err: Error | null, params?: {}) => void): void;
1818
- post(method: string, callback?: (err: Error | null, params?: {}) => void): void;
1819
- /**
1820
- * Returns supported domains.
1821
- */
1822
- post(method: 'Schema.getDomains', callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void;
1823
- /**
1824
- * Evaluates expression on global object.
1825
- */
1826
- post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
1827
- post(method: 'Runtime.evaluate', callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void;
1828
- /**
1829
- * Add handler to promise with given promise object id.
1830
- */
1831
- post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
1832
- post(method: 'Runtime.awaitPromise', callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void;
1833
- /**
1834
- * Calls function with given declaration on the given object. Object group of the result is inherited from the target object.
1835
- */
1836
- post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
1837
- post(method: 'Runtime.callFunctionOn', callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void;
1838
- /**
1839
- * Returns properties of a given object. Object group of the result is inherited from the target object.
1840
- */
1841
- post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
1842
- post(method: 'Runtime.getProperties', callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void;
1843
- /**
1844
- * Releases remote object with given id.
1845
- */
1846
- post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void;
1847
- post(method: 'Runtime.releaseObject', callback?: (err: Error | null) => void): void;
1848
- /**
1849
- * Releases all remote objects that belong to a given group.
1850
- */
1851
- post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void;
1852
- post(method: 'Runtime.releaseObjectGroup', callback?: (err: Error | null) => void): void;
1853
- /**
1854
- * Tells inspected instance to run if it was waiting for debugger to attach.
1855
- */
1856
- post(method: 'Runtime.runIfWaitingForDebugger', callback?: (err: Error | null) => void): void;
1857
- /**
1858
- * Enables reporting of execution contexts creation by means of <code>executionContextCreated</code> event. When the reporting gets enabled the event will be sent immediately for each existing execution context.
1859
- */
1860
- post(method: 'Runtime.enable', callback?: (err: Error | null) => void): void;
1861
- /**
1862
- * Disables reporting of execution contexts creation.
1863
- */
1864
- post(method: 'Runtime.disable', callback?: (err: Error | null) => void): void;
1865
- /**
1866
- * Discards collected exceptions and console API calls.
1867
- */
1868
- post(method: 'Runtime.discardConsoleEntries', callback?: (err: Error | null) => void): void;
1869
- /**
1870
- * @experimental
1871
- */
1872
- post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void;
1873
- post(method: 'Runtime.setCustomObjectFormatterEnabled', callback?: (err: Error | null) => void): void;
1874
- /**
1875
- * Compiles expression.
1876
- */
1877
- post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
1878
- post(method: 'Runtime.compileScript', callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void;
1879
- /**
1880
- * Runs script with given id in a given context.
1881
- */
1882
- post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
1883
- post(method: 'Runtime.runScript', callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void;
1884
- post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
1885
- post(method: 'Runtime.queryObjects', callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void;
1886
- /**
1887
- * Returns all let, const and class variables from global scope.
1888
- */
1889
- post(
1890
- method: 'Runtime.globalLexicalScopeNames',
1891
- params?: Runtime.GlobalLexicalScopeNamesParameterType,
1892
- callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void
1893
- ): void;
1894
- post(method: 'Runtime.globalLexicalScopeNames', callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void;
1895
- /**
1896
- * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
1897
- */
1898
- post(method: 'Debugger.enable', callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void;
1899
- /**
1900
- * Disables debugger for given page.
1901
- */
1902
- post(method: 'Debugger.disable', callback?: (err: Error | null) => void): void;
1903
- /**
1904
- * Activates / deactivates all breakpoints on the page.
1905
- */
1906
- post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void;
1907
- post(method: 'Debugger.setBreakpointsActive', callback?: (err: Error | null) => void): void;
1908
- /**
1909
- * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
1910
- */
1911
- post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void;
1912
- post(method: 'Debugger.setSkipAllPauses', callback?: (err: Error | null) => void): void;
1913
- /**
1914
- * 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 <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads.
1915
- */
1916
- post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
1917
- post(method: 'Debugger.setBreakpointByUrl', callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void;
1918
- /**
1919
- * Sets JavaScript breakpoint at a given location.
1920
- */
1921
- post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
1922
- post(method: 'Debugger.setBreakpoint', callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void;
1923
- /**
1924
- * Removes JavaScript breakpoint.
1925
- */
1926
- post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void;
1927
- post(method: 'Debugger.removeBreakpoint', callback?: (err: Error | null) => void): void;
1928
- /**
1929
- * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
1930
- */
1931
- post(
1932
- method: 'Debugger.getPossibleBreakpoints',
1933
- params?: Debugger.GetPossibleBreakpointsParameterType,
1934
- callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void
1935
- ): void;
1936
- post(method: 'Debugger.getPossibleBreakpoints', callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void;
1937
- /**
1938
- * Continues execution until specific location is reached.
1939
- */
1940
- post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void;
1941
- post(method: 'Debugger.continueToLocation', callback?: (err: Error | null) => void): void;
1942
- /**
1943
- * @experimental
1944
- */
1945
- post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void;
1946
- post(method: 'Debugger.pauseOnAsyncCall', callback?: (err: Error | null) => void): void;
1947
- /**
1948
- * Steps over the statement.
1949
- */
1950
- post(method: 'Debugger.stepOver', callback?: (err: Error | null) => void): void;
1951
- /**
1952
- * Steps into the function call.
1953
- */
1954
- post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void;
1955
- post(method: 'Debugger.stepInto', callback?: (err: Error | null) => void): void;
1956
- /**
1957
- * Steps out of the function call.
1958
- */
1959
- post(method: 'Debugger.stepOut', callback?: (err: Error | null) => void): void;
1960
- /**
1961
- * Stops on the next JavaScript statement.
1962
- */
1963
- post(method: 'Debugger.pause', callback?: (err: Error | null) => void): void;
1964
- /**
1965
- * 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.
1966
- * @experimental
1967
- */
1968
- post(method: 'Debugger.scheduleStepIntoAsync', callback?: (err: Error | null) => void): void;
1969
- /**
1970
- * Resumes JavaScript execution.
1971
- */
1972
- post(method: 'Debugger.resume', callback?: (err: Error | null) => void): void;
1973
- /**
1974
- * Returns stack trace with given <code>stackTraceId</code>.
1975
- * @experimental
1976
- */
1977
- post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
1978
- post(method: 'Debugger.getStackTrace', callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void;
1979
- /**
1980
- * Searches for given string in script content.
1981
- */
1982
- post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
1983
- post(method: 'Debugger.searchInContent', callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void;
1984
- /**
1985
- * Edits JavaScript source live.
1986
- */
1987
- post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
1988
- post(method: 'Debugger.setScriptSource', callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void;
1989
- /**
1990
- * Restarts particular call frame from the beginning.
1991
- */
1992
- post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
1993
- post(method: 'Debugger.restartFrame', callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void;
1994
- /**
1995
- * Returns source for the script with given id.
1996
- */
1997
- post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
1998
- post(method: 'Debugger.getScriptSource', callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void;
1999
- /**
2000
- * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is <code>none</code>.
2001
- */
2002
- post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void;
2003
- post(method: 'Debugger.setPauseOnExceptions', callback?: (err: Error | null) => void): void;
2004
- /**
2005
- * Evaluates expression on a given call frame.
2006
- */
2007
- post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
2008
- post(method: 'Debugger.evaluateOnCallFrame', callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void;
2009
- /**
2010
- * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
2011
- */
2012
- post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void;
2013
- post(method: 'Debugger.setVariableValue', callback?: (err: Error | null) => void): void;
2014
- /**
2015
- * Changes return value in top frame. Available only at return break position.
2016
- * @experimental
2017
- */
2018
- post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void;
2019
- post(method: 'Debugger.setReturnValue', callback?: (err: Error | null) => void): void;
2020
- /**
2021
- * Enables or disables async call stacks tracking.
2022
- */
2023
- post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void;
2024
- post(method: 'Debugger.setAsyncCallStackDepth', callback?: (err: Error | null) => void): void;
2025
- /**
2026
- * 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.
2027
- * @experimental
2028
- */
2029
- post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void;
2030
- post(method: 'Debugger.setBlackboxPatterns', callback?: (err: Error | null) => void): void;
2031
- /**
2032
- * 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.
2033
- * @experimental
2034
- */
2035
- post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void;
2036
- post(method: 'Debugger.setBlackboxedRanges', callback?: (err: Error | null) => void): void;
2037
- /**
2038
- * Enables console domain, sends the messages collected so far to the client by means of the <code>messageAdded</code> notification.
2039
- */
2040
- post(method: 'Console.enable', callback?: (err: Error | null) => void): void;
2041
- /**
2042
- * Disables console domain, prevents further console messages from being reported to the client.
2043
- */
2044
- post(method: 'Console.disable', callback?: (err: Error | null) => void): void;
2045
- /**
2046
- * Does nothing.
2047
- */
2048
- post(method: 'Console.clearMessages', callback?: (err: Error | null) => void): void;
2049
- post(method: 'Profiler.enable', callback?: (err: Error | null) => void): void;
2050
- post(method: 'Profiler.disable', callback?: (err: Error | null) => void): void;
2051
- /**
2052
- * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started.
2053
- */
2054
- post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void;
2055
- post(method: 'Profiler.setSamplingInterval', callback?: (err: Error | null) => void): void;
2056
- post(method: 'Profiler.start', callback?: (err: Error | null) => void): void;
2057
- post(method: 'Profiler.stop', callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void;
2058
- /**
2059
- * 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.
2060
- */
2061
- post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void;
2062
- post(method: 'Profiler.startPreciseCoverage', callback?: (err: Error | null) => void): void;
2063
- /**
2064
- * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code.
2065
- */
2066
- post(method: 'Profiler.stopPreciseCoverage', callback?: (err: Error | null) => void): void;
2067
- /**
2068
- * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started.
2069
- */
2070
- post(method: 'Profiler.takePreciseCoverage', callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void;
2071
- /**
2072
- * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection.
2073
- */
2074
- post(method: 'Profiler.getBestEffortCoverage', callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void;
2075
- /**
2076
- * Enable type profile.
2077
- * @experimental
2078
- */
2079
- post(method: 'Profiler.startTypeProfile', callback?: (err: Error | null) => void): void;
2080
- /**
2081
- * Disable type profile. Disabling releases type profile data collected so far.
2082
- * @experimental
2083
- */
2084
- post(method: 'Profiler.stopTypeProfile', callback?: (err: Error | null) => void): void;
2085
- /**
2086
- * Collect type profile.
2087
- * @experimental
2088
- */
2089
- post(method: 'Profiler.takeTypeProfile', callback?: (err: Error | null, params: Profiler.TakeTypeProfileReturnType) => void): void;
2090
- post(method: 'HeapProfiler.enable', callback?: (err: Error | null) => void): void;
2091
- post(method: 'HeapProfiler.disable', callback?: (err: Error | null) => void): void;
2092
- post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
2093
- post(method: 'HeapProfiler.startTrackingHeapObjects', callback?: (err: Error | null) => void): void;
2094
- post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void;
2095
- post(method: 'HeapProfiler.stopTrackingHeapObjects', callback?: (err: Error | null) => void): void;
2096
- post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void;
2097
- post(method: 'HeapProfiler.takeHeapSnapshot', callback?: (err: Error | null) => void): void;
2098
- post(method: 'HeapProfiler.collectGarbage', callback?: (err: Error | null) => void): void;
2099
- post(
2100
- method: 'HeapProfiler.getObjectByHeapObjectId',
2101
- params?: HeapProfiler.GetObjectByHeapObjectIdParameterType,
2102
- callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void
2103
- ): void;
2104
- post(method: 'HeapProfiler.getObjectByHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void;
2105
- /**
2106
- * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions).
2107
- */
2108
- post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void;
2109
- post(method: 'HeapProfiler.addInspectedHeapObject', callback?: (err: Error | null) => void): void;
2110
- post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
2111
- post(method: 'HeapProfiler.getHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void;
2112
- post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void;
2113
- post(method: 'HeapProfiler.startSampling', callback?: (err: Error | null) => void): void;
2114
- post(method: 'HeapProfiler.stopSampling', callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void;
2115
- post(method: 'HeapProfiler.getSamplingProfile', callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void;
2116
- /**
2117
- * Gets supported tracing categories.
2118
- */
2119
- post(method: 'NodeTracing.getCategories', callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void;
2120
- /**
2121
- * Start trace events collection.
2122
- */
2123
- post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void;
2124
- post(method: 'NodeTracing.start', callback?: (err: Error | null) => void): void;
2125
- /**
2126
- * Stop trace events collection. Remaining collected events will be sent as a sequence of
2127
- * dataCollected events followed by tracingComplete event.
2128
- */
2129
- post(method: 'NodeTracing.stop', callback?: (err: Error | null) => void): void;
2130
- /**
2131
- * Sends protocol message over session with given id.
2132
- */
2133
- post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void;
2134
- post(method: 'NodeWorker.sendMessageToWorker', callback?: (err: Error | null) => void): void;
2135
- /**
2136
- * Instructs the inspector to attach to running workers. Will also attach to new workers
2137
- * as they start
2138
- */
2139
- post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void;
2140
- post(method: 'NodeWorker.enable', callback?: (err: Error | null) => void): void;
2141
- /**
2142
- * Detaches from all running workers and disables attaching to new workers as they are started.
2143
- */
2144
- post(method: 'NodeWorker.disable', callback?: (err: Error | null) => void): void;
2145
- /**
2146
- * Detached from the worker with given sessionId.
2147
- */
2148
- post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void;
2149
- post(method: 'NodeWorker.detach', callback?: (err: Error | null) => void): void;
2150
- /**
2151
- * Enable the `NodeRuntime.waitingForDisconnect`.
2152
- */
2153
- post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void;
2154
- post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', callback?: (err: Error | null) => void): void;
2155
- // Events
2156
- addListener(event: string, listener: (...args: any[]) => void): this;
2157
- /**
2158
- * Emitted when any notification from the V8 Inspector is received.
2159
- */
2160
- addListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2161
- /**
2162
- * Issued when new execution context is created.
2163
- */
2164
- addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2165
- /**
2166
- * Issued when execution context is destroyed.
2167
- */
2168
- addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2169
- /**
2170
- * Issued when all executionContexts were cleared in browser
2171
- */
2172
- addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2173
- /**
2174
- * Issued when exception was thrown and unhandled.
2175
- */
2176
- addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2177
- /**
2178
- * Issued when unhandled exception was revoked.
2179
- */
2180
- addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2181
- /**
2182
- * Issued when console API was called.
2183
- */
2184
- addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2185
- /**
2186
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2187
- */
2188
- addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2189
- /**
2190
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2191
- */
2192
- addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2193
- /**
2194
- * Fired when virtual machine fails to parse the script.
2195
- */
2196
- addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2197
- /**
2198
- * Fired when breakpoint is resolved to an actual script and location.
2199
- */
2200
- addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2201
- /**
2202
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2203
- */
2204
- addListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2205
- /**
2206
- * Fired when the virtual machine resumed execution.
2207
- */
2208
- addListener(event: 'Debugger.resumed', listener: () => void): this;
2209
- /**
2210
- * Issued when new console message is added.
2211
- */
2212
- addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2213
- /**
2214
- * Sent when new profile recording is started using console.profile() call.
2215
- */
2216
- addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2217
- addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2218
- addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2219
- addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2220
- addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2221
- /**
2222
- * 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.
2223
- */
2224
- addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2225
- /**
2226
- * If heap objects tracking has been started then backend may send update for one or more fragments
2227
- */
2228
- addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2229
- /**
2230
- * Contains an bucket of collected trace events.
2231
- */
2232
- addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2233
- /**
2234
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2235
- * delivered via dataCollected events.
2236
- */
2237
- addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2238
- /**
2239
- * Issued when attached to a worker.
2240
- */
2241
- addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2242
- /**
2243
- * Issued when detached from the worker.
2244
- */
2245
- addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2246
- /**
2247
- * Notifies about a new protocol message received from the session
2248
- * (session ID is provided in attachedToWorker notification).
2249
- */
2250
- addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2251
- /**
2252
- * This event is fired instead of `Runtime.executionContextDestroyed` when
2253
- * enabled.
2254
- * It is fired when the Node process finished all code execution and is
2255
- * waiting for all frontends to disconnect.
2256
- */
2257
- addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2258
- emit(event: string | symbol, ...args: any[]): boolean;
2259
- emit(event: 'inspectorNotification', message: InspectorNotification<{}>): boolean;
2260
- emit(event: 'Runtime.executionContextCreated', message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>): boolean;
2261
- emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>): boolean;
2262
- emit(event: 'Runtime.executionContextsCleared'): boolean;
2263
- emit(event: 'Runtime.exceptionThrown', message: InspectorNotification<Runtime.ExceptionThrownEventDataType>): boolean;
2264
- emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>): boolean;
2265
- emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>): boolean;
2266
- emit(event: 'Runtime.inspectRequested', message: InspectorNotification<Runtime.InspectRequestedEventDataType>): boolean;
2267
- emit(event: 'Debugger.scriptParsed', message: InspectorNotification<Debugger.ScriptParsedEventDataType>): boolean;
2268
- emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>): boolean;
2269
- emit(event: 'Debugger.breakpointResolved', message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>): boolean;
2270
- emit(event: 'Debugger.paused', message: InspectorNotification<Debugger.PausedEventDataType>): boolean;
2271
- emit(event: 'Debugger.resumed'): boolean;
2272
- emit(event: 'Console.messageAdded', message: InspectorNotification<Console.MessageAddedEventDataType>): boolean;
2273
- emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>): boolean;
2274
- emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>): boolean;
2275
- emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>): boolean;
2276
- emit(event: 'HeapProfiler.resetProfiles'): boolean;
2277
- emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>): boolean;
2278
- emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>): boolean;
2279
- emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>): boolean;
2280
- emit(event: 'NodeTracing.dataCollected', message: InspectorNotification<NodeTracing.DataCollectedEventDataType>): boolean;
2281
- emit(event: 'NodeTracing.tracingComplete'): boolean;
2282
- emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>): boolean;
2283
- emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>): boolean;
2284
- emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>): boolean;
2285
- emit(event: 'NodeRuntime.waitingForDisconnect'): boolean;
2286
- on(event: string, listener: (...args: any[]) => void): this;
2287
- /**
2288
- * Emitted when any notification from the V8 Inspector is received.
2289
- */
2290
- on(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2291
- /**
2292
- * Issued when new execution context is created.
2293
- */
2294
- on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2295
- /**
2296
- * Issued when execution context is destroyed.
2297
- */
2298
- on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2299
- /**
2300
- * Issued when all executionContexts were cleared in browser
2301
- */
2302
- on(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2303
- /**
2304
- * Issued when exception was thrown and unhandled.
2305
- */
2306
- on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2307
- /**
2308
- * Issued when unhandled exception was revoked.
2309
- */
2310
- on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2311
- /**
2312
- * Issued when console API was called.
2313
- */
2314
- on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2315
- /**
2316
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2317
- */
2318
- on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2319
- /**
2320
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2321
- */
2322
- on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2323
- /**
2324
- * Fired when virtual machine fails to parse the script.
2325
- */
2326
- on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2327
- /**
2328
- * Fired when breakpoint is resolved to an actual script and location.
2329
- */
2330
- on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2331
- /**
2332
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2333
- */
2334
- on(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2335
- /**
2336
- * Fired when the virtual machine resumed execution.
2337
- */
2338
- on(event: 'Debugger.resumed', listener: () => void): this;
2339
- /**
2340
- * Issued when new console message is added.
2341
- */
2342
- on(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2343
- /**
2344
- * Sent when new profile recording is started using console.profile() call.
2345
- */
2346
- on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2347
- on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2348
- on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2349
- on(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2350
- on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2351
- /**
2352
- * 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.
2353
- */
2354
- on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2355
- /**
2356
- * If heap objects tracking has been started then backend may send update for one or more fragments
2357
- */
2358
- on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2359
- /**
2360
- * Contains an bucket of collected trace events.
2361
- */
2362
- on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2363
- /**
2364
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2365
- * delivered via dataCollected events.
2366
- */
2367
- on(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2368
- /**
2369
- * Issued when attached to a worker.
2370
- */
2371
- on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2372
- /**
2373
- * Issued when detached from the worker.
2374
- */
2375
- on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2376
- /**
2377
- * Notifies about a new protocol message received from the session
2378
- * (session ID is provided in attachedToWorker notification).
2379
- */
2380
- on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2381
- /**
2382
- * This event is fired instead of `Runtime.executionContextDestroyed` when
2383
- * enabled.
2384
- * It is fired when the Node process finished all code execution and is
2385
- * waiting for all frontends to disconnect.
2386
- */
2387
- on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2388
- once(event: string, listener: (...args: any[]) => void): this;
2389
- /**
2390
- * Emitted when any notification from the V8 Inspector is received.
2391
- */
2392
- once(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2393
- /**
2394
- * Issued when new execution context is created.
2395
- */
2396
- once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2397
- /**
2398
- * Issued when execution context is destroyed.
2399
- */
2400
- once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2401
- /**
2402
- * Issued when all executionContexts were cleared in browser
2403
- */
2404
- once(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2405
- /**
2406
- * Issued when exception was thrown and unhandled.
2407
- */
2408
- once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2409
- /**
2410
- * Issued when unhandled exception was revoked.
2411
- */
2412
- once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2413
- /**
2414
- * Issued when console API was called.
2415
- */
2416
- once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2417
- /**
2418
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2419
- */
2420
- once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2421
- /**
2422
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2423
- */
2424
- once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2425
- /**
2426
- * Fired when virtual machine fails to parse the script.
2427
- */
2428
- once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2429
- /**
2430
- * Fired when breakpoint is resolved to an actual script and location.
2431
- */
2432
- once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2433
- /**
2434
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2435
- */
2436
- once(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2437
- /**
2438
- * Fired when the virtual machine resumed execution.
2439
- */
2440
- once(event: 'Debugger.resumed', listener: () => void): this;
2441
- /**
2442
- * Issued when new console message is added.
2443
- */
2444
- once(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2445
- /**
2446
- * Sent when new profile recording is started using console.profile() call.
2447
- */
2448
- once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2449
- once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2450
- once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2451
- once(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2452
- once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2453
- /**
2454
- * 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.
2455
- */
2456
- once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2457
- /**
2458
- * If heap objects tracking has been started then backend may send update for one or more fragments
2459
- */
2460
- once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2461
- /**
2462
- * Contains an bucket of collected trace events.
2463
- */
2464
- once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2465
- /**
2466
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2467
- * delivered via dataCollected events.
2468
- */
2469
- once(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2470
- /**
2471
- * Issued when attached to a worker.
2472
- */
2473
- once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2474
- /**
2475
- * Issued when detached from the worker.
2476
- */
2477
- once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2478
- /**
2479
- * Notifies about a new protocol message received from the session
2480
- * (session ID is provided in attachedToWorker notification).
2481
- */
2482
- once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2483
- /**
2484
- * This event is fired instead of `Runtime.executionContextDestroyed` when
2485
- * enabled.
2486
- * It is fired when the Node process finished all code execution and is
2487
- * waiting for all frontends to disconnect.
2488
- */
2489
- once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2490
- prependListener(event: string, listener: (...args: any[]) => void): this;
2491
- /**
2492
- * Emitted when any notification from the V8 Inspector is received.
2493
- */
2494
- prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2495
- /**
2496
- * Issued when new execution context is created.
2497
- */
2498
- prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2499
- /**
2500
- * Issued when execution context is destroyed.
2501
- */
2502
- prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2503
- /**
2504
- * Issued when all executionContexts were cleared in browser
2505
- */
2506
- prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2507
- /**
2508
- * Issued when exception was thrown and unhandled.
2509
- */
2510
- prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2511
- /**
2512
- * Issued when unhandled exception was revoked.
2513
- */
2514
- prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2515
- /**
2516
- * Issued when console API was called.
2517
- */
2518
- prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2519
- /**
2520
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2521
- */
2522
- prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2523
- /**
2524
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2525
- */
2526
- prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2527
- /**
2528
- * Fired when virtual machine fails to parse the script.
2529
- */
2530
- prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2531
- /**
2532
- * Fired when breakpoint is resolved to an actual script and location.
2533
- */
2534
- prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2535
- /**
2536
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2537
- */
2538
- prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2539
- /**
2540
- * Fired when the virtual machine resumed execution.
2541
- */
2542
- prependListener(event: 'Debugger.resumed', listener: () => void): this;
2543
- /**
2544
- * Issued when new console message is added.
2545
- */
2546
- prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2547
- /**
2548
- * Sent when new profile recording is started using console.profile() call.
2549
- */
2550
- prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2551
- prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2552
- prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2553
- prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2554
- prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2555
- /**
2556
- * 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.
2557
- */
2558
- prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2559
- /**
2560
- * If heap objects tracking has been started then backend may send update for one or more fragments
2561
- */
2562
- prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2563
- /**
2564
- * Contains an bucket of collected trace events.
2565
- */
2566
- prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2567
- /**
2568
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2569
- * delivered via dataCollected events.
2570
- */
2571
- prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2572
- /**
2573
- * Issued when attached to a worker.
2574
- */
2575
- prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2576
- /**
2577
- * Issued when detached from the worker.
2578
- */
2579
- prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2580
- /**
2581
- * Notifies about a new protocol message received from the session
2582
- * (session ID is provided in attachedToWorker notification).
2583
- */
2584
- prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2585
- /**
2586
- * This event is fired instead of `Runtime.executionContextDestroyed` when
2587
- * enabled.
2588
- * It is fired when the Node process finished all code execution and is
2589
- * waiting for all frontends to disconnect.
2590
- */
2591
- prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2592
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
2593
- /**
2594
- * Emitted when any notification from the V8 Inspector is received.
2595
- */
2596
- prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this;
2597
- /**
2598
- * Issued when new execution context is created.
2599
- */
2600
- prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification<Runtime.ExecutionContextCreatedEventDataType>) => void): this;
2601
- /**
2602
- * Issued when execution context is destroyed.
2603
- */
2604
- prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification<Runtime.ExecutionContextDestroyedEventDataType>) => void): this;
2605
- /**
2606
- * Issued when all executionContexts were cleared in browser
2607
- */
2608
- prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this;
2609
- /**
2610
- * Issued when exception was thrown and unhandled.
2611
- */
2612
- prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification<Runtime.ExceptionThrownEventDataType>) => void): this;
2613
- /**
2614
- * Issued when unhandled exception was revoked.
2615
- */
2616
- prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification<Runtime.ExceptionRevokedEventDataType>) => void): this;
2617
- /**
2618
- * Issued when console API was called.
2619
- */
2620
- prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification<Runtime.ConsoleAPICalledEventDataType>) => void): this;
2621
- /**
2622
- * Issued when object should be inspected (for example, as a result of inspect() command line API call).
2623
- */
2624
- prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification<Runtime.InspectRequestedEventDataType>) => void): this;
2625
- /**
2626
- * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
2627
- */
2628
- prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification<Debugger.ScriptParsedEventDataType>) => void): this;
2629
- /**
2630
- * Fired when virtual machine fails to parse the script.
2631
- */
2632
- prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification<Debugger.ScriptFailedToParseEventDataType>) => void): this;
2633
- /**
2634
- * Fired when breakpoint is resolved to an actual script and location.
2635
- */
2636
- prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification<Debugger.BreakpointResolvedEventDataType>) => void): this;
2637
- /**
2638
- * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
2639
- */
2640
- prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification<Debugger.PausedEventDataType>) => void): this;
2641
- /**
2642
- * Fired when the virtual machine resumed execution.
2643
- */
2644
- prependOnceListener(event: 'Debugger.resumed', listener: () => void): this;
2645
- /**
2646
- * Issued when new console message is added.
2647
- */
2648
- prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification<Console.MessageAddedEventDataType>) => void): this;
2649
- /**
2650
- * Sent when new profile recording is started using console.profile() call.
2651
- */
2652
- prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification<Profiler.ConsoleProfileStartedEventDataType>) => void): this;
2653
- prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification<Profiler.ConsoleProfileFinishedEventDataType>) => void): this;
2654
- prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification<HeapProfiler.AddHeapSnapshotChunkEventDataType>) => void): this;
2655
- prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this;
2656
- prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification<HeapProfiler.ReportHeapSnapshotProgressEventDataType>) => void): this;
2657
- /**
2658
- * 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.
2659
- */
2660
- prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification<HeapProfiler.LastSeenObjectIdEventDataType>) => void): this;
2661
- /**
2662
- * If heap objects tracking has been started then backend may send update for one or more fragments
2663
- */
2664
- prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification<HeapProfiler.HeapStatsUpdateEventDataType>) => void): this;
2665
- /**
2666
- * Contains an bucket of collected trace events.
2667
- */
2668
- prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification<NodeTracing.DataCollectedEventDataType>) => void): this;
2669
- /**
2670
- * Signals that tracing is stopped and there is no trace buffers pending flush, all data were
2671
- * delivered via dataCollected events.
2672
- */
2673
- prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this;
2674
- /**
2675
- * Issued when attached to a worker.
2676
- */
2677
- prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification<NodeWorker.AttachedToWorkerEventDataType>) => void): this;
2678
- /**
2679
- * Issued when detached from the worker.
2680
- */
2681
- prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification<NodeWorker.DetachedFromWorkerEventDataType>) => void): this;
2682
- /**
2683
- * Notifies about a new protocol message received from the session
2684
- * (session ID is provided in attachedToWorker notification).
2685
- */
2686
- prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification<NodeWorker.ReceivedMessageFromWorkerEventDataType>) => void): this;
2687
- /**
2688
- * This event is fired instead of `Runtime.executionContextDestroyed` when
2689
- * enabled.
2690
- * It is fired when the Node process finished all code execution and is
2691
- * waiting for all frontends to disconnect.
2692
- */
2693
- prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this;
2694
- }
2695
- /**
2696
- * Activate inspector on host and port. Equivalent to`node --inspect=[[host:]port]`, but can be done programmatically after node has
2697
- * started.
2698
- *
2699
- * If wait is `true`, will block until a client has connected to the inspect port
2700
- * and flow control has been passed to the debugger client.
2701
- *
2702
- * See the `security warning` regarding the `host`parameter usage.
2703
- * @param [port='what was specified on the CLI'] Port to listen on for inspector connections. Optional.
2704
- * @param [host='what was specified on the CLI'] Host to listen on for inspector connections. Optional.
2705
- * @param [wait=false] Block until a client has connected. Optional.
2706
- */
2707
- function open(port?: number, host?: string, wait?: boolean): void;
2708
- /**
2709
- * Deactivate the inspector. Blocks until there are no active connections.
2710
- */
2711
- function close(): void;
2712
- /**
2713
- * Return the URL of the active inspector, or `undefined` if there is none.
2714
- *
2715
- * ```console
2716
- * $ node --inspect -p 'inspector.url()'
2717
- * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
2718
- * For help, see: https://nodejs.org/en/docs/inspector
2719
- * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34
2720
- *
2721
- * $ node --inspect=localhost:3000 -p 'inspector.url()'
2722
- * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
2723
- * For help, see: https://nodejs.org/en/docs/inspector
2724
- * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a
2725
- *
2726
- * $ node -p 'inspector.url()'
2727
- * undefined
2728
- * ```
2729
- */
2730
- function url(): string | undefined;
2731
- /**
2732
- * Blocks until a client (existing or connected later) has sent`Runtime.runIfWaitingForDebugger` command.
2733
- *
2734
- * An exception will be thrown if there is no active inspector.
2735
- * @since v12.7.0
2736
- */
2737
- function waitForDebugger(): void;
2738
- // These methods are exposed by the V8 inspector console API (inspector/v8-console.h).
2739
- // The method signatures differ from those of the Node.js console, and are deliberately
2740
- // typed permissively.
2741
- interface InspectorConsole {
2742
- debug(...data: any[]): void;
2743
- error(...data: any[]): void;
2744
- info(...data: any[]): void;
2745
- log(...data: any[]): void;
2746
- warn(...data: any[]): void;
2747
- dir(...data: any[]): void;
2748
- dirxml(...data: any[]): void;
2749
- table(...data: any[]): void;
2750
- trace(...data: any[]): void;
2751
- group(...data: any[]): void;
2752
- groupCollapsed(...data: any[]): void;
2753
- groupEnd(...data: any[]): void;
2754
- clear(...data: any[]): void;
2755
- count(label?: any): void;
2756
- countReset(label?: any): void;
2757
- assert(value?: any, ...data: any[]): void;
2758
- profile(label?: any): void;
2759
- profileEnd(label?: any): void;
2760
- time(label?: any): void;
2761
- timeLog(label?: any): void;
2762
- timeStamp(label?: any): void;
2763
- }
2764
- /**
2765
- * An object to send messages to the remote inspector console.
2766
- * @since v11.0.0
2767
- */
2768
- const console: InspectorConsole;
2769
- }
2770
- /**
2771
- * The inspector module provides an API for interacting with the V8 inspector.
2772
- */
2773
- declare module 'node:inspector' {
2774
- export * from 'inspector';
2775
- }