angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

beta.11-webpack.8 visual studio code debug

Open tamasfoldi opened this issue 10 years ago • 17 comments

Hi!

I'm trying to debug my [email protected] 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!

tamasfoldi avatar Sep 01 '16 12:09 tamasfoldi

+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?

santoshsas avatar Sep 09 '16 19:09 santoshsas

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

tamasfoldi avatar Sep 09 '16 21:09 tamasfoldi

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

santoshsas avatar Sep 09 '16 22:09 santoshsas

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?

tamasfoldi avatar Sep 09 '16 22:09 tamasfoldi

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

jzoss avatar Sep 13 '16 16:09 jzoss

+1

ajrauen avatar Sep 14 '16 07:09 ajrauen

+1

jsmucr avatar Sep 14 '16 08:09 jsmucr

+1

yuri1969 avatar Sep 14 '16 08:09 yuri1969

+1

gitonworld avatar Sep 17 '16 21:09 gitonworld

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

daverupp avatar Sep 29 '16 13:09 daverupp

maybe it relates to this @filipesilva https://github.com/angular/angular-cli/issues/1798 (i hope because that means it is going to be fixed)

tamasfoldi avatar Sep 30 '16 12:09 tamasfoldi

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

yuri1969 avatar Oct 03 '16 20:10 yuri1969

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?

tamasfoldi avatar Oct 03 '16 20:10 tamasfoldi

@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.

yuri1969 avatar Oct 03 '16 20:10 yuri1969

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

tamasfoldi avatar Oct 03 '16 21:10 tamasfoldi

I'm going to close this issue in favor of https://github.com/angular/angular-cli/issues/2453 because it contains some more investigation and a couple of solutions.

filipesilva avatar Oct 09 '16 00:10 filipesilva

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.