A Visual Studio Code extension to debug your Javascript code on targets that support the Chrome Debugging Protocol.
Hi,
I'm not able to debug JavaScript with the extension "Debugger for Chrome", maybe due to Source Maps problems.
In "Breakpoints" box, I see the message Breakpoint ignored because generated code not found (source map problem?)
.
Here is my launch.json
config:
"webRoot": "${workspaceFolder}",
"sourceMaps": true,
"sourceMapPathOverrides": {
"/./*": "${workspaceFolder}/*",
"/js/*": "${workspaceFolder}/js/*",
"/new/*": "${workspaceFolder}/new/*",
}
My development URL is served from HTTPS, but I don't think that's the problem. And .scripts
command in Debug Console apparently does not return errors:
...
› chrome-extension://ipdjnhgkpapgippgcgkfcbpdpcgifncb/jquery.js
› https://local.juridmais.com.br/new/js/jurid-web.js (/Projetos/jurid-web/jurid-web/new/js/jurid-web.js)
- jquery-2.1.1.min.js (/Projetos/jurid-web/jurid-web/new/js/jquery-2.1.1.min.js)
- jquery.ui.min.js (/Projetos/jurid-web/jurid-web/new/js/jquery.ui.min.js)
- bootstrap.min.js (/Projetos/jurid-web/jurid-web/new/js/bootstrap.min.js)
- jquery.dateFormat.js (/Projetos/jurid-web/jurid-web/new/js/jquery.dateFormat.js)
- jquery.mark.min.js (/Projetos/jurid-web/jurid-web/new/js/jquery.mark.min.js)
- perfect-scrollbar.jquery.min.js (/Projetos/jurid-web/jurid-web/new/js/perfect-scrollbar.jquery.min.js)
- juridmais.js (/Projetos/jurid-web/jurid-web/new/js/juridmais.js)
...
Can anybody help me? I used to work normally with Debugger for Chrome and Source Maps, but I didn't debug anything a few weeks ago.
My launch.json is basic:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:4200",
"webRoot": "${workspaceFolder}"
}
]
}
"type": "chrome",
"request": "attach",
"port": 9222,
"name": "Attach to Chrome",
"url": "http://localhost:3001",
"webRoot": "${workspaceFolder}"
}
.scripts
Uncaught SyntaxError: Unexpected token '.'