Skip to content

unable to set breakpoint in spec.ts code for debugging #6914

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

Closed
quant-daddy opened this issue Jul 7, 2017 · 4 comments
Closed

unable to set breakpoint in spec.ts code for debugging #6914

quant-daddy opened this issue Jul 7, 2017 · 4 comments
Assignees
Labels
P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity2: inconvenient

Comments

@quant-daddy
Copy link

quant-daddy commented Jul 7, 2017

I'm using angular2 cli and am following the test debugging instructions in the official documentation. I'm able to search for the spec.ts source files which are in the app folder and set break points. However, I'm not able to do the same for the test files for components in other folder. The tests do run but I'm not able to find the source file in the chrome browser. Shall I edit some config file? I've tried to add the source files manually to the source in chrome but that doesn't help in setting the breakpoint. Any help is very much appreciated.

@Brocco Brocco added P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity2: inconvenient labels Jul 17, 2017
@Brocco
Copy link
Contributor

Brocco commented Jul 17, 2017

Looks like this should be resolved with PR #6862 but I will leave this open for @filipesilva to confirm.

@devoto13
Copy link
Contributor

@skk2142 Are you trying to set breakpoint in one of the libraries in your node_modules? If so it's probably not supported, because CLI currently ignores source maps for third-party libraries.

@filipesilva
Copy link
Contributor

There are currently some bugs with app sourcemaps in ng test that #6862 and #6968 should address, but as @devoto13 mentioned we don't offer sourcemap support for files in node_modules. There is a feature request for that in #5477.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity2: inconvenient
Projects
None yet
Development

No branches or pull requests

4 participants