This repository provides Visual Studio Code configuration files (launch.json and tasks.json) that enable debugging an Angular application directly from within Visual Studio Code.
- Visual Studio Code installed on your machine.
- Node.js and npm installed globally.
The launch.json file contains configurations for debugging your Angular application in Visual Studio Code. It includes settings for launching the Angular development server and attaching the debugger.
The tasks.json file defines tasks that can be executed from within Visual Studio Code. It includes a task for starting the Angular development server.
-
Open your Angular project in Visual Studio Code
-
Press
F5or navigate to the Debug panel and click on the "Start Debugging" button to launch the Angular application in debugging mode. -
Set breakpoints in your TypeScript code as needed.
- Make sure your Angular application is set up correctly and you can run it using
ng servebefore attempting to debug it.