A Visual Studio Code extension to debug your Javascript code on targets that support the Chrome Debugging Protocol.
command 'extension.chrome-debug.startSession' not found
launch.json
:{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Angular Client",
"type": "chrome",
"request": "launch",
"url": "http://localhost:4200",
"runtimeArgs": [
"--user-data-dir",
"--remote-debugging-port=9222"
],
"sourceMaps": true,
"trace": true,
"webRoot": "${workspaceRoot}/Frontend/",
"userDataDir": "${workspaceRoot}/.vscode/chrome"
}
]
}
{
"type": "node",
"request": "launch",
"name": "test actions",
"env": { "NODE_ENV": "test"},
"args": ["./test/actions.spec.js","--compilers", "js:babel-register", "--require", "babel-polyfill"],
"cwd": "${workspaceRoot}",
"stopOnEntry": false,
"runtimeExecutable": "${workspaceRoot}/node_modules/.bin/babel-node",
"runtimeArgs": [
"--nolazy"
],
"sourceMaps": true,
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha"
}
t=-19185 [st= 0] +REQUEST_ALIVE [dt=22472]
--> has_upload = true
--> is_pending = true
--> load_flags = 16384 (MAYBE_USER_GESTURE)
--> load_state = 14 (WAITING_FOR_RESPONSE)
--> method = "POST"
--> net_error = -1 (ERR_IO_PENDING)
--> status = "IO_PENDING"
--> url = "http://new.intltest.zomworkdev.com/loginapi/regsend"
t= 3286 [st=22471] CANCELLED
t= 3287 [st=22472] -URL_REQUEST_START_JOB
--> net_error = -3 (ERR_ABORTED)
t= 3287 [st=22472] URL_REQUEST_DELEGATE [dt=0]
t= 3287 [st=22472] -REQUEST_ALIVE
Can someone help me?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}"
}
]
}