I am currently working on an Angular/TypeScript application and have been able to debug the TypeScript code in Chrome thanks to the map files.
Recently, I decided to install the Debugger for Chrome extension from Visual Studio Marketplace. You can find it here: https://marketplace.visualstudio.com/items/msjsdiag.debugger-for-chrome
Despite setting everything up correctly, whenever I try to run the debugger in vscode, I encounter the following error message:
[webkit-debug-adapter] Got response from target app, but no valid target pages found
This error is most likely due to my lack of understanding on how to properly configure the debugger.
Currently, my app is running on port 9000 using Grunt. Below is a snippet of my debugger configuration file:
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"type": "chrome",
"request": "attach",
"port": 9000,
"webRoot": "./app/scripts"
}
]
}
If anyone has any insights or suggestions on how to successfully attach the debugger, I would greatly appreciate your assistance.