This is a very early version to something that would become very usefull. The main functionality, the "Instrument all function" is not working well with ES6. I didn't have time to make this more stable. If you are using ES5 this command may work well.
All help is appreciated.
Very useful to trace what functions are called in a node.js app. For now, only instrument functions, changing your original code. Then after see the result you can get your original code back with git or UNDO.
Insert console.log that was inserted with the last command
Removes all console.log that was inserted with the last command
** 1. Install debug-print to your node project **
$ npm i debug-print
** 2. run your app with DEBUG=* env **
# inline ENV
$ DEBUG=* node your_app_name.js
# or call gulp/grunt/...
$ DEBUG=* (gulp| grunt| anything)
# or export ENV
$ export DEBUG=*
$ node your_app_name.js
echo '-----------------------------------------------------'
echo 'creating ast folder...'
mkdir ast
cd ast
echo '-----------------------------------------------------'
echo 'Cloning all repos...'
git clone [email protected]:saitodisse/atom-javascript-refactor.git
# clone and link all dependencies
./scripts/clone-and-link
git clone [email protected]:saitodisse/atom-javascript-refactor.git
cd atom-jsRefactoring-tutorial
apm link