Showing posts with label angular. Show all posts
Showing posts with label angular. Show all posts

Sunday 6 January 2019

Debugging in Angular with Visual studio code



Setting up debug steps for Visual studio code  :





1. In the above screenshot , click on debug menu from the left panel

2. You need to setup the launch.json file  with the below code  changes  :

   "version": "0.2.0",
    "configurations": [
        {
            "type": "chrome",
            "request": "launch",
            "name": "Launch Chrome against localhost",
            "url": "http://localhost:4200",
            "webRoot": "${workspaceFolder}"
        }
    ]
3. Make sure for chrome you need to install the debug for chrome  extension .

4. Run the angular project , put the break point where ever required.