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

feat: Optionally dump full stack traces #56

Merged
merged 4 commits into from
Jan 10, 2025

Conversation

dreusel
Copy link
Contributor

@dreusel dreusel commented Jan 10, 2025

See Readme for details
This implements #55

myndzi added a commit that referenced this pull request Jan 10, 2025
- Use `var` rather than `const` to support node 0.10.0 to < 4.0.0
- Update test-all to exit early and re-run the failing test
- Fix try-catch in kitchensink to be valid on node 0.10.0
@dreusel
Copy link
Contributor Author

dreusel commented Jan 10, 2025

Note that the formatting of code location in the stack traces makes IDEs like webstorm recognize them and make them clickable :)

Copy link
Owner

@myndzi myndzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I double-checked the PR against the various node versions I support, seems mostly good to go. I made a branch with some of the changes (and a couple other fixes for the tests); you should be able to cherry-pick the commit from here https://github.com/myndzi/wtfnode/compare/myndzi/feat/full-stacktraces-tweaks

If it's not too much trouble, would you mind addressing the indentation comment?

myndzi and others added 3 commits January 10, 2025 20:42
- Use `var` rather than `const` to support node 0.10.0 to < 4.0.0
- Update test-all to exit early and re-run the failing test
- Fix try-catch in kitchensink to be valid on node 0.10.0
Also put all the rendering code in one place
@dreusel
Copy link
Contributor Author

dreusel commented Jan 10, 2025

Indenting should be fixed now, kitchensink output looks good to me @myndzi :)

@myndzi
Copy link
Owner

myndzi commented Jan 10, 2025

Thanks so much for your contribution! I'll publish a new version shortly

@myndzi myndzi merged commit cdabf79 into myndzi:main Jan 10, 2025
@myndzi
Copy link
Owner

myndzi commented Jan 10, 2025

(I missed one thing when --fullstack isn't present, the printed output format names don't line up with the arguments in Timers/Intervals.

@myndzi
Copy link
Owner

myndzi commented Jan 10, 2025

Published. It seems to have just been deleting the %s on accident. I also removed the @ in the full stack version to match the others

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

Successfully merging this pull request may close these issues.

2 participants