nv / capturecalls.js Goto Github PK
View Code? Open in Web Editor NEWcaptureCalls('document.getElementById') to show a stack trace for document.getElementById on its every call
Home Page: http://nv.github.io/captureCalls.js/
captureCalls('document.getElementById') to show a stack trace for document.getElementById on its every call
Home Page: http://nv.github.io/captureCalls.js/
@NV would you mind if I added this nice snippet to my devtools snippets repository? I would link back to this project, of course.
function run(x, y) {return add(x + 1, y + 1)}
function add(x,y) {return x + y}
captureCalls(run)
run(2, 3)
Expected output:
run(x=2, y=3) -> undefined
add(x=3, y=4) -> 7 :6:1
It currently shows:
run(x=2, y=3) -> undefined
at <anonymous>:6:1
It seems plausible to implement this using caller and caller.arguments.
I get this errors in Chrome 30 from your demo site.
Object E has no method 'getFunctionName'
Don’t use V8 JavaScript StackTrace API, just parse stack traces
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.