# debug-live

> Debug a running node.js app without breakpoints!

Latest version **0.1.1** (published 2013-08-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install debug-live
pnpm add debug-live
yarn add debug-live
bun add debug-live
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2013-08-02 |
| First published | 2013-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Maintainers | go-oleg |
| Keywords | debug |

## Links

- npm: https://www.npmjs.com/package/debug-live
- Repository: https://github.com/go-oleg/debug-live
- Issues: https://github.com/go-oleg/debug-live/issues
- npm.io page: https://npm.io/package/debug-live

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2013-08-02
- 0.1.0 — 2013-08-02

## README

Debug Live
=====================

This little tool lets you debug your running node.js applications without setting breakpoints!


### Installation

```shell
npm install debug-live
```

### Usage

```javascript
//require debug-live
var debugLive = require("debug-live");

//paste in this snippet of code
//(the second parameter is the configurable port Debug Live should run on)
debugLive(function (exprToEval) {
  return eval(exprToEval);
},1337);

//let your app do what it needs to do
var counter = 0;

setInterval(function() {
  counter++;
},100);

var a = {
  a : "abc",
  b : "def"
};
```

Start your app, telnet to Debug Live, and look at that all those variables!
```bash
$ telnet localhost 1337
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Welcome to the Live Debugger:
>counter
36
>counter
51
>counter
70
>a
[object Object]
>a.a
abc
>a.b
def
>a.b.c
undefined
>a.doesntExist.a
TypeError: Cannot read property 'a' of undefined
>a
[object Object]
>JSON.stringify(a, null, "\t")
{
	"a": "abc",
	"b": "def"
}
>
```

---
_Source: https://npm.io/package/debug-live · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
