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

Angular cli 1.1.1 doesn't allow in-browser debugging #6640

Closed
mdanetzky opened this issue Jun 10, 2017 · 15 comments · Fixed by #6862
Closed

Angular cli 1.1.1 doesn't allow in-browser debugging #6640

mdanetzky opened this issue Jun 10, 2017 · 15 comments · Fixed by #6862
Assignees
Labels
P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful severity5: regression type: bug/fix

Comments

@mdanetzky
Copy link

Bug Report

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.1.1
node: 8.0.0
os: darwin x64

Repro steps.

ng new debugtest
cd debugtest
ng test
in the browser -> Debug -> developer tools / sources -> cmd+p ->
cannot find app.component.ts!

@LuckyMallari
Copy link

see solution here:
#6623

@mdanetzky
Copy link
Author

mdanetzky commented Jun 14, 2017

I'm not sure if creating / modifying launch.json each time you make a new project suffices as a solution. Older vesions of angular cli are much more user friendly in that regard.

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

Yeah I agree, this sounds like a different issues as well. This one isn't related to VSCode. It sounds like there is a regression with the sourcemaps.

@filipesilva filipesilva added P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful severity5: regression type: bug/fix and removed P5 The team acknowledges the request but does not plan to address it, it remains open for discussion severity2: inconvenient labels Jun 21, 2017
@filipesilva
Copy link
Contributor

I followed your steps and could see app.component.ts:
image

I think #6682 fixed it, as per @clydin's comment #6623 (comment).

@mdanetzky
Copy link
Author

I still cannot see the sources. Even after the update to Angular cli 1.2.0. Maybe it is the OSX issue.
screen shot 2017-07-03 at 21 27 08

@filipesilva
Copy link
Contributor

What version of chrome are you using? I'm on 59.0.3071.115.

Can you try making a new app and checking there if you can see the sources? If so, it might be a dependency issue.

@mdanetzky
Copy link
Author

Chrome: 59.0.3071.115 (Official Build) (64-bit)
After ng new; ng test:
screen shot 2017-07-03 at 21 42 05

@filipesilva
Copy link
Contributor

Ok, I think I see what's wrong. Thank you for taking the time to debug.

@filipesilva filipesilva reopened this Jul 3, 2017
@filipesilva
Copy link
Contributor

filipesilva commented Jul 3, 2017

#6862 should fix this I believe. If it doesn't and you still experience this problem after it's merged and released, please let me know.

@AlexLnz
Copy link

AlexLnz commented Jul 17, 2017

I just tried updating to 1.2.1 and I get still no sources.

@filipesilva
Copy link
Contributor

@AlexLnz can you tell me exactly how to reproduce what you're seeing? I've been testing this myself and see the sources in devtools.

@AlexLnz
Copy link

AlexLnz commented Jul 17, 2017

I'm doing a "ng test". Then in Chrome on the karma page click "Debug".
New page with "Karma DEBUG RUNNER" opens and the tests run again.
Open Chrome Dev Tools (F12).
Go to "sources".
=> Cannot find any ts file there.

no-ts-files

Using Chrome 59.0.3071.115

@filipesilva
Copy link
Contributor

@AlexLnz see #6862 (comment)

@dawidjanusz
Copy link

Solution:

  1. open chrome dev tools(F12),
  2. go to "Sources" Tab,
  3. refresh page (don't close dev tools).

Regards,
Dawid

@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
P1 Impacts a large percentage of users; if a workaround exists it is partial or overly painful severity5: regression type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants