Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mnaoumov/debuggable-eval

Makes eval() debugger-friendly with ability to set breakpoints and see proper line numbers in the Error stack traces
https://github.com/mnaoumov/debuggable-eval

Last synced: about 1 month ago
JSON representation

Makes eval() debugger-friendly with ability to set breakpoints and see proper line numbers in the Error stack traces

Awesome Lists containing this project

README

        


:package: debuggable-eval


Makes eval() debugger-friendly with ability to set breakpoints and see proper line numbers in the Error stack traces




Issues


GitHub pull requests


GitHub Downloads


GitHub Total Downloads


GitHub release





Report Bug
Request Feature


>

# NPM Module debuggable-eval

[![codecov](https://codecov.io/gh/mnaoumov/debuggable-eval/branch/main/graph/badge.svg?token=Q9fr548J0D)](https://codecov.io/gh/mnaoumov/debuggable-eval)

Makes eval() debugger-friendly with ability to set breakpoints and see proper line numbers in the Error stack traces

## Usage

```bash
npm install debuggable-eval
```

```js
const debuggableEval = require('debuggable-eval');
// or
import debuggableEval from 'debuggable-eval';

debuggableEval(`console.log('Line 1');
console.log('Line 2');
throw new Error('Error in Line 3');`, 'testScript.js');
```

## 📝 License

Copyright © 2023 [Michael Naumov](https://github.com/mnaoumov).

This project is [MIT](LICENSE.md) licensed.