dougwilson / nodejs-depd

Deprecate all the things
MIT License
325 stars 87 forks source link

Ability to output full stack of deprecations #6

Closed dougwilson closed 10 years ago

dougwilson commented 10 years ago

It would be nice, when tracking down deprecations manually, to see the full stack of the deprecation's call site. Possible Interface:

$ TRACE_DEPRECATION=* node my_script.js
my-module deprecated oldfunction
    at Object.<anonymous> ([eval]-wrapper:6:22)
    at Module._compile (module.js:456:26)
    at evalScript (node.js:532:25)
    at startup (node.js:80:7)
    at node.js:902:3

Can probably honor Node.js core's --trace-deprecation flag as well.