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

Display all frames of the stack #95

Open
OoDeLally opened this issue Sep 7, 2017 · 1 comment
Open

Display all frames of the stack #95

OoDeLally opened this issue Sep 7, 2017 · 1 comment

Comments

@OoDeLally
Copy link

Currently, only the first frame is shown:

# src/foo/bar/baz.js:37
  
  assert(_.isArray(nodes) && nodes.length > 0 && _.every(nodes, node => node instanceof Node))
         | |       |      |  |     |      |   |                                               
         | |       |      |  |     |      |   false                                           
         | |       |      |  []    0      false                                               
         | true    []     false                                                               
         #function#                               

Is it possible to get all the frames that led to that assertion? That would be really helpful.

e.g.

# src/foo/bar/baz.js:37
  
  assert(_.isArray(nodes) && nodes.length > 0 && _.every(nodes, node => node instanceof Node))
         | |       |      |  |     |      |   |                                               
         | |       |      |  |     |      |   false                                           
         | |       |      |  []    0      false                                               
         | true    []     false                                                               
         #function#         

at src/foo/hello_you.js:45
at src/foo/hello.js:154
at src/foo/greeting.js:48

Thank you

@twada
Copy link
Member

twada commented Sep 7, 2017

@OoDeLally Thank you for your question.
Would you give me a bit more information?

  • OS
  • Node version
  • Testing framework (Mocha, ...) or vanilla Node

Since stack traces are automatically suppressed under some environments
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants