A Visual Studio Code extension to debug your Javascript code on targets that support the Chrome Debugging Protocol.
npm link
to link them. Also see this file https://github.com/Microsoft/vscode-chrome-debug/blob/master/CONTRIBUTING.md and please help me fix it if anything is missing.
"webRoot": "${workspaceRoot}",
"url": "http://localhost:8081/#/",
"sourceMapPathOverrides": {
"webpack:///./*": "${webRoot}/*",
"webpack:///*": "${webRoot}/src/components/*"
}
Hello, guys.
I'm new with vscode-chrome-debug and trying to debug my application that is hosted already.
In details, I have an Angular app hosted by Salesforce on the url - https://trnc1srk1.na35.visual.force.com/apex/FormView.
Could you provide me with info - can I debug code already deployed using "attach" option?
All my attempts to connect to the app were failed.
Here is my config for debugger:
{
"name": "Attach",
"type": "chrome",
"request": "attach",
"port": 9222,
"url": "https://trnc1srk1.na35.visual.force.com/apex/*"
}
And yes, I'm running Chrome with --remote-debugging-port=9222
parameter.
Also, I work on Windows.
Thanks.
"version": "0.2.0",
"configurations": [
{
"name": "Launch index.html with sourcemaps",
"type": "chrome",
"request": "launch",
"url": "http://localhost:4040/index.html",
"sourceMaps": false,
"webRoot": "${workspaceRoot}"
}
]
I am working on Windows 10 using a current version of Chrome.debugger;
statement, execution stops there and I can step through my code, also the breakpoints in the code following are being hit. VS Code tells me "Breakpoint ignored because target path not found" on hovering over a breakpoint. Do you have an idea how to fix this? I would also be fine with an attach configuration.
.scripts
command to see which urls are loaded. They will be resolved to files on disk using your webRoot
- see if it makes sense.
"version": "0.2.0",
"configurations": [
{
"name": "Launch index.html with sourcemaps",
"type": "chrome",
"request": "launch",
"url": "http://localhost:4040/index.html",
"sourceMaps": true,
"webRoot": "${workspaceRoot}"
}
]
made it work, with eval-source-map
it does not. I need to better understand what is going on. I will try using .scripts
to see what goes wrong when trying to use eval-source-map
.