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

How do I debug bidmanager.js from bidmanager_spec.js? #532

Closed
snapwich opened this issue Aug 17, 2016 · 2 comments
Closed

How do I debug bidmanager.js from bidmanager_spec.js? #532

snapwich opened this issue Aug 17, 2016 · 2 comments

Comments

@snapwich
Copy link
Collaborator

I followed the directions on the README using gulp test --watch and I can place the debugger; statement in the spec and step through bidmanager_spec.js code just fine, but as soon as I step into calls from bidmanager.js (which is imported directly from the spec) the code is minified.

The karma runner doesn't seem to be serving any file sourcemaps the way it's currently configured. I attempted to use the instructions at https://github.com/webpack/karma-webpack/blob/master/README.md to configure webpack to generate inline-source-maps (as karma-webpack doesn't seem to currently support file sourcemaps) and wasn't having much success.

Is there a solution in-place already for debugging a non-minified version of the code inside these specs?

@mkendall07
Copy link
Member

I believe the issue is actually caused by istanbul instrumentation, not minification. As a work around, you can remove the istanbul loader from karma.conf.js during tests.

@snapwich
Copy link
Collaborator Author

Thank you, that was exactly the problem.

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