https://github.com/nv/capturecalls.js
  
  
    captureCalls('document.getElementById') to show a stack trace for document.getElementById on its every call 
    https://github.com/nv/capturecalls.js
  
chrome-devtools debugging-tool javascript
        Last synced: 7 months ago 
        JSON representation
    
captureCalls('document.getElementById') to show a stack trace for document.getElementById on its every call
- Host: GitHub
 - URL: https://github.com/nv/capturecalls.js
 - Owner: NV
 - Created: 2013-04-15T04:04:52.000Z (over 12 years ago)
 - Default Branch: gh-pages
 - Last Pushed: 2014-08-13T21:20:28.000Z (about 11 years ago)
 - Last Synced: 2024-08-01T21:59:01.244Z (over 1 year ago)
 - Topics: chrome-devtools, debugging-tool, javascript
 - Language: JavaScript
 - Homepage: http://nv.github.io/captureCalls.js/
 - Size: 124 KB
 - Stars: 112
 - Watchers: 9
 - Forks: 8
 - Open Issues: 1
 - 
            Metadata Files:
            
- Readme: README.mdown
 
 
Awesome Lists containing this project
README
          # captureCalls.js
[Demo](http://nv.github.io/captureCalls.js/)
## Usage
There are two ways to use captureCalls.js: a Chrome extension or a standalone script.
### [Chrome extension](https://chrome.google.com/webstore/detail/capturecalls/jbifbiilihmmfjcbfbbdhknaehdgbabd)
Once installed, it runs on all web sites and defines `captureCalls` function globally,
so it can be used not only in DevTools console but in all JavaScripts as well.
### Standalone script
Download [captureCalls.js](https://raw.githubusercontent.com/NV/captureCalls.js/gh-pages/chrome/captureCalls.js)
and include it into your web page ``.
It’s generally a good idea to include captureCalls.js only for a developer environment
 and keep it out of production.
## Options
**captureCalls.stacktrace**  
`true`: include stack traces in the output
**captureCalls.logFileNames**  
`true`: show URLs with line numbers, e.g. `http://nv.github.io/captureCalls.js/demo/demo.js:7`
**captureCalls.logDetails**  
`false`: show an object with details, e.g. `{this: window, function: function() {[native]}}`
## TODO
 - Write on how captureCalls is superior to Chrome DevTools `monitor` function.