开发者社区> 镜像站> NPM> lldb-jbt
lldb-jbt
Adds JavaScript symbols to lldb stack traces
Last updated 6 years ago by thlorenz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install lldb-jbt 
SYNC missed versions from official npm registry.

lldb-jbt

assets/sample.png

Screencasts

Debugging Node.js with lldb and jbt Debugging Node.js with Xcode and jbt
assets/yt-jbt-lldb.png assets/yt-jbt-lldb.png

Installation

npm install -g lldb-jbt

Requires Node.js version 0.11.13 or higher and works best with a debug build.

For more information see Node.js build instructions.

Usage

  1. Add the script dir to your PYTHONPATH by running source jbt
  2. Debug your node process with --perf-basic-prof flag, i.e. lldb -- node --perf-basic-prof index.js
  3. Import the jbt command into lldb command script import jbt
  4. Set a breakpoint, i.e. b uv_fs_read
  5. When you hit the breakpoint type jbt to see the stack trace with JavaScript symbols resolved

Xcode

To make things work with Xcode do the following:

  1. Run jbt to determine where jbt.py was installed on your machine
  2. Add a ~/.lldbinit-xcode file which will be picked up by Xcode with the below content
command script import <path/to/jbt.py>

Now the jbt command will initialize itself and is accessible to you in the lldb console inside Xcode.

License

MIT

Current Tags

  • 0.3.1                                ...           latest (6 years ago)

5 Versions

  • 0.3.1                                ...           6 years ago
  • 0.3.0                                ...           6 years ago
  • 0.2.1                                ...           6 years ago
  • 0.2.0                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)