-
Notifications
You must be signed in to change notification settings - Fork 74
Closed
Description
Steps to reproduce:
- Create a new typescript application (I created the angular example application "tour of heroes" which can be downloaded from here: https://angular.io/generated/zips/toh-pt6/toh-pt6.zip)
- Import the Angular application into eclipse
- Set a breakpoint in an ngOnInit()-function in one of the *.ts-files (I chose the "dashboard.component.ts")
- Start the angular application (e.g. "ng serve")
- Create a "Chrome Debug" instance
- Tick the checkbox for "URL"
- Enter the URL of the angular application (e.g. http://localhost:4200/)
- Start the debug session (make sure that no chrome window is currently open (at least on windows) or else the debug session is not properly started; I believe the reason for this is Issue 927)
- The break point from step 3. in the *.ts-file is ignored even though the breakpoint should be triggered.
I can give a more detailed explanation on how to setup the angular example project if necessary.
Environment
Eclipse 2023-06
Analysis
I looked into the documentation for vscode-chrome-debug (which can be found here: https://github.com/microsoft/vscode-chrome-debug#launch) to see which parameter is missing. When specifying an URL, the webRoot folder must also be specified to map the source files to the URL.
After looking through the source code of wildwebdeveloper, I realized that the webRoot parameter is never set and thus not breakpoints are triggered.
Strangely enough the webRoot parameter is set when the firefox debugger is launched (the firefox debugger also does not work, but I believe for other reasons).
Metadata
Metadata
Assignees
Labels
No labels