Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README.md: Improve core dump loading instructions #86

Merged
merged 2 commits into from
Jun 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ sudo make install-linux

The llnode plugin can be loaded into LLDB using the `plugin load` command.
Alternatively it can be installed in the LLDB system plugin directory, in
which case LLDB will load the plugin automatically on start-up.
which case LLDB will load the plugin automatically on start-up.

### OS X

Expand All @@ -106,6 +106,25 @@ To install the plugin in the LLDB system plugin directory, use the
npm copy `node_modules/llnode/llnode.so` to
`/usr/lib/lldb/plugins`.

To use llnode with a core dump the core dump needs to be loaded into lldb
along with the exact executable that created the core dump. The executable
contains information that lldb and llnode need to make sense of the data in
the core dump.

To load the core dump when starting lldb use:
```
lldb /path/to/bin/node -c /path/to/core
```
or to load the core dump after starting lldb:
```
(lldb) target create /path/to/bin/node -c /path/to/core
```

It does not matter whether the `plugin load` command is issued before or after
loading a core dump.

### Commands

```
(lldb) v8 help
Node.js helpers
Expand Down