Coder Social home page Coder Social logo

node-theseus's Introduction

node-theseus

node-theseus is a command for launching Node.js scripts for debugging with Theseus.

Theseus is part of a collaboration between the User Interface Design Group at MIT CSAIL and Adobe Research.

Install

  1. Install the Theseus extension in Brackets
  2. npm install -g node-theseus

Use

  1. Start Node.js with node-theseus [yourapp.js]
  2. Open yourapp.js in Brackets

The process will continue to run even after your program finishes so that you can connect to it with Theseus.

The --theseus-port=number option starts theseus on that port. The default port is process.env.THESEUS_PORT || 8888

The --theseus-verbose option prints light debugging output. --theseus-verbose=2 prints heavy debugging output. Those options may be useful for troubleshooting the connection with Theseus.

The --theseus-exclude=glob option excludes the given file path glob from being instrumented. For example, --theseus-exclude='*.js' will exclude all the *.js files in the current directory.

The --theseus-include-modules option causes files in node_modules to also be instrumented. They aren't by default for performance reasons.

The --theseus-max-invocations-per-tick=number option changes the number of function invocations to record for a single tick before pausing trace collection until the next tick. The default is 4096. This limit prevents Theseus from using a ridiculous amount of memory for programs that are occasionally computationally intensive by detecting the intense computation and not recording all of the details.

Development

  1. In your development directory, run:

    git clone git://github.com/adobe-research/fondue
    git clone git://github.com/adobe-research/node-theseus
    
  2. Install each project's dependencies:

    cd fondue; npm install; cd ..
    cd node-theseus; npm install; cd ..
    
  3. Use the development version of fondue in node-theseus, then install node-theseus globally using npm link, which installs symlinks to the development directory instead of copying the files:

    cd node-theseus
    npm link ../fondue
    npm link
    

License

node-theseus is MIT licensed.

node-theseus's People

Contributors

alltom avatar deepak1556 avatar pagameba 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.