When Starting the chrome debugger inside of visual studio code, it shows a popup with an error stating "Cannot find debug adapter for type 'chrome'."
I have already tried setting the remote-debugging-port to 9222 in the properties of Chrome as well as in the launch.json
Here is the launch.json that I'm currently trying to use:
{
"version": "0.2.0",
"configurations": [
{
"name": "Chrome Debug",
"type": "chrome",
"request": "launch",
"url": "http://localhost/app",
"runtimeArgs" : [
"--remote-debugging-port=9222"
],
"webRoot": "${workspaceFolder}/path_to_js"
}
]
}
I had the same issue. I uninstalled and reinstalled the Debugger for Chrome extension and restarted VS Code. It started working.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.