https://github.com/alidavut/locus
  
  
    Locus is a debugging module for node.js 
    https://github.com/alidavut/locus
  
debugger javascript locus nodejs
        Last synced: 7 months ago 
        JSON representation
    
Locus is a debugging module for node.js
- Host: GitHub
- URL: https://github.com/alidavut/locus
- Owner: alidavut
- Archived: true
- Created: 2013-12-11T13:17:01.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2021-09-29T17:56:00.000Z (about 4 years ago)
- Last Synced: 2025-03-13T15:16:05.529Z (8 months ago)
- Topics: debugger, javascript, locus, nodejs
- Language: JavaScript
- Homepage:
- Size: 159 KB
- Stars: 306
- Watchers: 11
- Forks: 18
- Open Issues: 4
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
- awesome-nodejs-cn - locus - 在运行时启动所有可访问变量的REPL (包 / 调试 / 分析)
- awesome-nodejs - locus - Starts a REPL at runtime that has access to all variables.  (Repository / Debugging)
- awesome-nodejs-cn - locus - **star:306** 在运行时启动一个可以访问所有变量的REPL ![项目已归档][Archived] (包 / 调试)
- awesome-nodejs - locus - Starts a REPL at runtime that has access to all variables. (Packages / Debugging / Profiling)
- awesome-node - locus - Starts a REPL at runtime that has access to all variables. (Packages / Debugging / Profiling)
- awesome-nodejs-cn - locus - 在运行时启动可访问所有变量的REPL. (目录 / 调试/分析)
- awesome-nodejs - locus - Locus is a debugging module for node.js - ★ 255 (Debugging / Profiling)
- fucking-awesome-nodejs - locus - Starts a REPL at runtime that has access to all variables. (Packages / Debugging / Profiling)
- fucking-awesome-nodejs - locus - Starts a REPL at runtime that has access to all variables. (Packages / Debugging / Profiling)
README
          ʆ Locus
=======
Locus is a debugging module which allows you to execute commands at runtime via a REPL.
[](https://asciinema.org/a/102735?autoplay=1&speed=1.5)
## Installing
```bash
npm install locus --save-dev
```
## Using
```javascript
require('locus');
var myVar = 123;
var myObj = {
  key: 'value'
};
function makeSomething() {
  var some = 'some value';
  // will start a repl session
  // you can manipulate the program at runtime
  eval(locus);
  // another option
  eval(require('locus'))
  return some;
}
makeSomething();
```
Use **exit** command to leave.