maierfelix / Iroh
- вторник, 12 сентября 2017 г. в 10:37:50
☕ Dynamic analysis tool - Intercept, record and analyze JavaScript at runtime
☕ Dynamic code analysis for JavaScript
Iroh is a dynamic code analysis tool for JavaScript. Iroh allows to record your code flow in realtime, intercept runtime values and manipulate program behaviour on the fly.
npm install iroh
or alternatively the browser distribution from here.
You can play with some live examples here and you can clone them from here.
(A simple textual model is used here)
function factorial(n) {
if (n === 0) return 1;
return n * factorial(n - 1);
};
factorial(3);
call factorial ( [3] )
call factorial ( [2] )
call factorial ( [1] )
call factorial ( [0] )
if
if end
call factorial end -> [1]
call factorial end -> [1]
call factorial end -> [2]
call factorial end -> [6]