You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added two new commands (getactivehandles and getactiverequests)
which prints all pending handles and requests (same return
given by process._getActiveHandles() and process._getActiveRequests()).
Those changes were built upon the symbols added on nodejs/node#14901,
which means it's currently not working with node's latest build.
Fixes: nodejs#100
Ref: nodejs/node#14901
Copy file name to clipboardexpand all lines: README.md
+38-36
Original file line number
Diff line number
Diff line change
@@ -219,42 +219,44 @@ Syntax: v8
219
219
220
220
The following subcommands are supported:
221
221
222
-
bt -- Show a backtrace with node.js JavaScript functions and their args. An optional argument is accepted; if
223
-
that argument is a number, it specifies the number of frames to display. Otherwise all frames will be
224
-
dumped.
225
-
226
-
Syntax: v8 bt [number]
227
-
findjsinstances -- List all objects which share the specified map.
228
-
Accepts the same options as `v8 inspect`
229
-
findjsobjects -- List all object types and instance counts grouped by map and sorted by instance count.
230
-
Requires `LLNODE_RANGESFILE` environment variable to be set to a file containing memory ranges for the
231
-
core file being debugged.
232
-
There are scripts for generating this file on Linux and Mac in the scripts directory of the llnode
233
-
repository.
234
-
findrefs -- Finds all the object properties which meet the search criteria.
235
-
The default is to list all the object properties that reference the specified value.
236
-
Flags:
237
-
238
-
* -v, --value expr - all properties that refer to the specified JavaScript object (default)
239
-
* -n, --name name - all properties with the specified name
240
-
* -s, --string string - all properties that refer to the specified JavaScript string value
241
-
* --array-length num - print maximum of `num` elements in array
242
-
243
-
inspect -- Print detailed description and contents of the JavaScript value.
244
-
245
-
Possible flags (all optional):
246
-
247
-
* -F, --full-string - print whole string without adding ellipsis
248
-
* -m, --print-map - print object's map address
249
-
* -s, --print-source - print source code for function objects
250
-
* --string-length num - print maximum of `num` characters in string
251
-
252
-
Syntax: v8 inspect [flags] expr
253
-
nodeinfo -- Print information about Node.js
254
-
print -- Print short description of the JavaScript value.
255
-
256
-
Syntax: v8 print expr
257
-
source -- Source code information
222
+
bt -- Show a backtrace with node.js JavaScript functions and their args. An optional argument is accepted; if
223
+
that argument is a number, it specifies the number of frames to display. Otherwise all frames will be
224
+
dumped.
225
+
226
+
Syntax: v8 bt [number]
227
+
findjsinstances -- List all objects which share the specified map.
228
+
Accepts the same options as `v8 inspect`
229
+
findjsobjects -- List all object types and instance counts grouped by map and sorted by instance count.
230
+
Requires `LLNODE_RANGESFILE` environment variable to be set to a file containing memory ranges for the
231
+
core file being debugged.
232
+
There are scripts for generating this file on Linux and Mac in the scripts directory of the llnode
233
+
repository.
234
+
findrefs -- Finds all the object properties which meet the search criteria.
235
+
The default is to list all the object properties that reference the specified value.
236
+
Flags:
237
+
238
+
* -v, --value expr - all properties that refer to the specified JavaScript object (default)
239
+
* -n, --name name - all properties with the specified name
240
+
* -s, --string string - all properties that refer to the specified JavaScript string value
241
+
* --array-length num - print maximum of `num` elements in array
242
+
243
+
getactivehandles -- *EXPERIMENTAL* Equivalent to running process._getActiveHandles. This command is still being developed and for now it only works building node from source.
244
+
getactiverequests -- *EXPERIMENTAL* Equivalent to running process._getActiveRequests. This command is still being developed and for now it only works building node from source.
245
+
inspect -- Print detailed description and contents of the JavaScript value.
246
+
247
+
Possible flags (all optional):
248
+
249
+
* -F, --full-string - print whole string without adding ellipsis
250
+
* -m, --print-map - print object's map address
251
+
* -s, --print-source - print source code for function objects
252
+
* --string-length num - print maximum of `num` characters in string
253
+
254
+
Syntax: v8 inspect [flags] expr
255
+
nodeinfo -- Print information about Node.js
256
+
print -- Print short description of the JavaScript value.
257
+
258
+
Syntax: v8 print expr
259
+
source -- Source code information
258
260
259
261
For more help on any particular subcommand, type 'help <command> <subcommand>'.
0 commit comments