Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trstringer/cdebug

:bug: Terse conditional breakpoint debugging
https://github.com/trstringer/cdebug

Last synced: 10 days ago
JSON representation

:bug: Terse conditional breakpoint debugging

Awesome Lists containing this project

README

        

# cdebug

*Conditional debugging in code... a nice, terse solution*

This is just a wrapper around `debugger`.

## Installation

```
npm install cdebug
```

## Usage

```javascript
let myVar = 1;
// conditional breakpoint
cdebug(myVar === 1); // breakpoint hit

myVar = 2;
cdebug(myVar === 1); // breakpoint not hit
```