mathjs/docs/command_line_debugging.md
2015-04-26 14:55:07 +02:00

20 lines
527 B
Markdown

# Command Line Debugging
For debugging purposes, `bin/repl.js` provides a REPL (Read Evaluate Print Loop)
for interactive testing of mathjs without having to build new build files after every
little change to the source files. You can either start it directly (`./repl.js`) or
via node (`node repl.js`).
You can exit using either [ctrl]-[C] or [ctrl]-[D].
```bash
$ ./repl.js
> math.parse('1+1')
{ op: '+',
fn: 'add',
args:
[ { value: '1', valueType: 'number' },
{ value: '1', valueType: 'number' } ] }
>
```