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

All stack traces point to line 9 #102

Open
1 task done
marysalva opened this issue Jun 21, 2018 · 0 comments
Open
1 task done

All stack traces point to line 9 #102

marysalva opened this issue Jun 21, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@marysalva
Copy link
Collaborator

marysalva commented Jun 21, 2018

Need

As a developer
I want meaningful stack traces
So that I can quickly debug.

Deliverables

  • Stack traces point to the original line.

Notes
Right now, Istanbul seems to put the entire instrumented code on line 9 so every stack trace will point to line 9 which is not very useful. The first 8 lines seem to be setup code for tracking coverage

A quick win would be to preserve line numbers in the instrumented output. Another way would be to generate source maps.

Thoughts?

@marysalva marysalva added the enhancement New feature or request label Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant