eth-debug-lines
Injects Solidity source code with DebugLine events to allow per-line error reporting.
Install
$ npm install --save eth-debug-lines
CLI Usage
$ eth-debug-lines < MyContractsol
API Usage
const injectDebugLines = const src = `contract MyContract { function foo() { uint a; uint b; uint c; }}` console /* Output: contract MyContract { // INJECTED event DebugLine(uint line); function foo() {DebugLine(3); uint a;DebugLine(4); uint b;DebugLine(5); uint c; }}*/
Issues
Before reporting, please makes sure your source is parseable via solidity-parser.
License
ISC © Raine Revere