Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronous way to get bluebird stack trace #1474

Open
polomsky opened this issue Nov 4, 2017 · 0 comments
Open

Synchronous way to get bluebird stack trace #1474

polomsky opened this issue Nov 4, 2017 · 0 comments

Comments

@polomsky
Copy link

polomsky commented Nov 4, 2017

I like bluebird "long" stack trace when error happens. But this stack trace can be revealed only by throwing error. I would like to access that long stack trace inside of promise by using synchronous way.
E.g.

somePromise.then(function() {
    console.log('Called from', Promise.getStackTrace());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants