Skip to content

Instantly share code, notes, and snippets.

@reedho
Created August 31, 2016 07:36
Show Gist options
  • Save reedho/2c261c8312a4d17cf636d04f683e4042 to your computer and use it in GitHub Desktop.
Save reedho/2c261c8312a4d17cf636d04f683e4042 to your computer and use it in GitHub Desktop.
Debugging node app for human
{
"plugins": ["transform-es2015-destructuring",
"transform-object-rest-spread"],
"presets": ["es2015"]
}
import * as fs from 'fs';
var _fs = require('fs');
let p1 = {x: 0, y: 0};
let p2 = {...p1, z: 0};
console.log("p1", p1, "p2", p2);
debugger;
npm i -g babel-node-debug

mkdir /tmp/x
cd /tmp/x
npm init -y 
npm i -D babel-cli
npm i -D babel-preset-es2015
npm i -D babel-plugin-transform-object-rest-spread
npm i -D babel-plugin-transform-es2015-destructuring
babel-node-debug app.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment