Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Debug cli-generated project with Visual Studio Code #1223
I changed nothing in the code, I am just trying to get it working with Visual Studio Code :-)
Here is my launch.json content:
@daverupp - just an aside question- in general, are you able to do angular2 development on Windows? I tried on windows10, but I ran into some npm module that was trying to create symlinks, which was failing on windows. I do not remember which module it was- it could have been part of the quickstart project.
referenced this issue
Jul 5, 2016
Yes I tried to run with ng serve. The angular app is running in localhost:4200.
Then I tried to attach to port 9222 via chrome (I attached this to the chrome launch: --remote-debugging-port=9222)
when run visual studio code, in the console is written: "SW registered". So that seems to be promising.
But when I go to localhost:4200 and click on a button to hit the breakpoint, still nothing happens...
Anyone can help?
To too am unable to debug angular-cli created application in VC Code. Seemingly no combination of launch.json setting will enable breakpoints being hit. There is alot of chatter in the debug console related to "webpack" when the
I added as tcs task to force the creation of the *.js and *.map files to be co-resident with the *.ts files to no avail (this worked on an non-cli app served from iisExpress, not via tsserver).
I can debug from Visual Studio Code after adding a
See also Microsoft/vscode-chrome-debug#226 for a
I am still facing the problem.
Below is the launch.json file:
Please help me out.
There's an official VSCode guide in https://github.com/Microsoft/vscode-recipes/tree/master/Angular-CLI as well.