Coder Social home page Coder Social logo

llnode's Introduction

llnode

Build Status

Node.js v4.x-v6.x C++ plugin for LLDB - a next generation, high-performance debugger.

Demo

https://asciinema.org/a/29589

Build instructions

OS X

Easy:

brew install llnode

Harder:

# Check out source code of the LLDB that is compatible with OS X's default
# lldb
git clone --depth=1 -b release_38 https://github.com/llvm-mirror/lldb.git lldb

# Initialize GYP
git clone https://chromium.googlesource.com/external/gyp.git tools/gyp

# Configure
./gyp_lldb

# Build
make -C out/ -j9

# Install
make install-osx

Linux

# Install lldb and headers
sudo apt-get install lldb-3.8 lldb-3.8-dev

# Initialize GYP
git clone https://chromium.googlesource.com/external/gyp.git tools/gyp

# Configure
./gyp_llnode -Dlldb_dir=/usr/lib/llvm-3.8/

# Build
make -C out/ -j9

# Install
sudo make install-linux

Usage

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.

                  Possible flags (all optional):

                  * -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.

                  Syntax: v8 print expr

For more help on any particular subcommand, type 'help <command> <subcommand>'.

LICENSE

This software is licensed under the MIT License.

Copyright Fedor Indutny, 2016.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

llnode's People

Contributors

indutny avatar hhellyer avatar brendangregg avatar evanlucas avatar watson avatar bmeck avatar yjhjstz avatar

Watchers

James Cloos avatar Lucas rodrigues araujo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.