Skip to content

Commit

Permalink
readme: Update v8 help output
Browse files Browse the repository at this point in the history
Update output of v8 help in README.md to match the current output and list all the available commands and options.
  • Loading branch information
hhellyer committed Oct 13, 2016
2 parents e6bb52b + bdfb4f6 commit 36e7504
Showing 1 changed file with 32 additions and 19 deletions.
51 changes: 32 additions & 19 deletions README.md
Expand Up @@ -59,28 +59,41 @@ sudo make install-linux

```
lldb
(lldb) help v8
The following subcommands are supported:
bt -- Show a backtrace with node.js JavaScript functions and their
args. An optional argument is accepted; if that argument is a
number, it specifies the number of frames to display. Otherwise
all frames will be dumped.
Syntax: v8 bt [number]
inspect -- Print detailed description and contents of the JavaScript
value.
(lldb) v8 help
Node.js helpers
Possible flags (all optional):
Syntax: v8
* -F, --full-string - print whole string without adding ellipsis
* -m, --print-map - print object's map address
* --string-length num - print maximum of `num` characters in string
Syntax: v8 inspect [flags] expr
print -- Print short description of the JavaScript value.
The following subcommands are supported:
Syntax: v8 print expr
bt -- Show a backtrace with node.js JavaScript functions and their args. An optional argument is accepted; if
that argument is a number, it specifies the number of frames to display. Otherwise all frames will be
dumped.
Syntax: v8 bt [number]
findjsinstances -- List all objects which share the specified map.
Accepts the same options as `v8 inspect`
findjsobjects -- List all object types and instance counts grouped by map and sorted by instance count.
Requires `LLNODE_RANGESFILE` environment variable to be set to a file containing memory ranges for the
core file being debugged.
There are scripts for generating this file on Linux and Mac in the scripts directory of the llnode
repository.
findrefs -- Find all the objects that refer to the specified object.
inspect -- Print detailed description and contents of the JavaScript value.
Possible flags (all optional):
* -F, --full-string - print whole string without adding ellipsis
* -m, --print-map - print object's map address
* -s, --print-source - print source code for function objects
* --string-length num - print maximum of `num` characters in string
Syntax: v8 inspect [flags] expr
nodeinfo -- Print information about Node.js
print -- Print short description of the JavaScript value.
Syntax: v8 print expr
source -- Source code information
For more help on any particular subcommand, type 'help <command> <subcommand>'.
```
Expand Down

0 comments on commit 36e7504

Please sign in to comment.