Comments (1)
Hey Jeremy,
Sorry for being so behind on this!
This is an unfortunate suggestion, but try using https://github.com/felixge/node-stack-trace in order to parse the stack trace for now. I was trying to figure out a way to expose both the raw trace and the stringified trace through the same error object but have yet to figure out a good way to do this. The basic issue is that adding a property to the error object that gets returned out seemed to not be possible in the way that I did things. In essence, the prepareStackTrace method can only be called once for any error. You could take a look in there and see if you can get the raw stack attached to the error that gets returned out.
Also, if you'd like something like currentStack, you could use visionmedia's https://github.com/visionmedia/callsite to get a stacktrace. He had another lib that does exactly what you want based on callsite, but I forget what it is now.
from longjohn.
Related Issues (20)
- Formatting lost on io.js
- 0.2.5 Invalid array length HOT 5
- Invalid Array length error with 0.2.6 HOT 2
- Huge CPU usage HOT 10
- Longjohn breaking jasmine tests (possibly because of changed exception handling?)
- Issues with gunzip HOT 3
- Asynchronously / lazily accessed err.stack is wrong
- play nicely with coffeescript source maps HOT 4
- Longjohn causes TLS error handler to be triggered
- Mongo database connection timeout with 0.2.10 HOT 1
- util.isFunction not available in older versions of Node
- errors with Timer error
- EventEmitter.listeners() returns different results in case longlohn is used
- longjohn is not compatible to other modules using a similar wrapping of EventEmitter HOT 1
- Can LongJohn be disabled after having been required?
- Using with TypeScript? HOT 1
- Doesn't work with promises HOT 5
- [question] Advantages over `Error.stackTraceLimit` HOT 1
- .once only working if there is an .on call for the same event type HOT 1
- Is it possible to use this with AWS Lambda functions ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from longjohn.