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

beta.11-webpack.8 visual studio code debug #1936

Closed
tamasfoldi opened this issue Sep 1, 2016 · 17 comments
Closed

beta.11-webpack.8 visual studio code debug #1936

tamasfoldi opened this issue Sep 1, 2016 · 17 comments
Labels
needs: investigation Requires some digging to determine if action is needed

Comments

@tamasfoldi
Copy link

Hi!

I'm trying to debug my angular-cli@beta.11-webpack.8 generated project with Visual Studio Code Debugger for Chrome on Windows 7, but I'm not able to hit any breakpoint. The debugger connects to the browser but, does not hit the breakpoint.
I have found this solution for webpack but how can I configure it with angular-cli?

Thanks for the replies!

@santoshsas
Copy link

+1
Have generated angular 2 project using angular-cli@webpack
Can someone please let know without webpack.conf how do i configure Vscode to debug with chrome extension on windows 10.
@tamasfoldi have u figured it out?

@tamasfoldi
Copy link
Author

@santoshsas No I was not able to solve it, hope there will be a solution cause it is frustrating a little bit.

@santoshsas
Copy link

@tamasfoldi yep it is but i believe u can debug in chrome developer tool itself only not in VsCode

@tamasfoldi
Copy link
Author

Yes I can but finding the correct .ts is not easy. Maybe something with the source map or I don't know but by default chrome gives me the bundles even in development build. I don't think this is the way it should work. Or am I missing something?

@jzoss
Copy link

jzoss commented Sep 13, 2016

+1.. Yes I just discovered this issue as well.

@ajrauen
Copy link

ajrauen commented Sep 14, 2016

+1

3 similar comments
@jsmucr
Copy link

jsmucr commented Sep 14, 2016

+1

@yuri1969
Copy link

+1

@gitonworld
Copy link

+1

@filipesilva filipesilva added the needs: investigation Requires some digging to determine if action is needed label Sep 22, 2016
@daverupp
Copy link

same issue, I am not able to attach the debugger from visual studio code. Please have a look into it - I would really appreciate to use angular-cli to work with, but without IDE support in breakpoints, it is a little bit cumbersome.

thanks for help

@tamasfoldi
Copy link
Author

maybe it relates to this @filipesilva #1798 (i hope because that means it is going to be fixed)

@yuri1969
Copy link

yuri1969 commented Oct 3, 2016

I've just solved this issue after an hour of experimenting. It might be useful for you too: #2453

@tamasfoldi
Copy link
Author

Thanks it is working! Should I keep it open so they can do with this something or it is not a bug and this is the proper way how we should configure vs code?

@yuri1969
Copy link

yuri1969 commented Oct 3, 2016

@tamasfoldi The current solution seems a bit hardcodish to me. I'm not sure if changes are required in angular-cli or vscode-chrome-debug VSCode plugin.

@tamasfoldi
Copy link
Author

@yuri1969 Ok then I will not close it. Thanks again for your workaround

@filipesilva
Copy link
Contributor

I'm going to close this issue in favor of #2453 because it contains some more investigation and a couple of solutions.

@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 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: investigation Requires some digging to determine if action is needed
Projects
None yet
Development

No branches or pull requests

9 participants