todo: create tool which could get diffs of stack traces and vars values to have easier debugging experience Especially, when you compare similar cases and one of them NOT WORKING!
- remove fucking "use strict";
sed -i -e 's|use strict|LoL|g' dist/davinciDesigner*.js
- for each function from call stack execute
arguments.callee.toString() // to reveal source code
-
extract variable names ("Identifier") from source code somehow (https://www.npmjs.com/package/esprima) see also extract-variable-names.js
-
eval('//code to save variable values from the function...')
-
display result somehow...