Snippets

Karolis Jocevičius vscode chrome lauch.json

Created by Karolis Jocevičius last modified
{
    "version": "0.2.0",
    "configurations": [
        // Angular 'ng serve'
        {
            "type": "chrome",
            "request": "launch",
            "name": "Launch Chrome against localhost",
            "url": "http://localhost:4200/",
            "runtimeArgs": [
                "--user-data-dir",
                "--remote-debugging-port=9222"
            ],
            "sourceMaps": true,
            "diagnosticLogging": true,
            "webRoot": "${workspaceRoot}",
            "userDataDir": "${workspaceRoot}/.vscode/chrome",
            "sourceMapPathOverrides": { "webpack:///./*": "${webRoot}/*" }
        },
        {
            "name": "Attach to Chrome, with sourcemaps",
            "type": "chrome",
            "request": "attach",
            "url": "http://localhost:4200/",
            "port": 9222,
            "sourceMaps": true,
            "diagnosticLogging": true,
            "webRoot": "${workspaceRoot}",
            "sourceMapPathOverrides": { "webpack:///./*": "${webRoot}/*" }
        },
        
        // IBM Content Navigator Plugin widgets (Dojo toolkit)
        {
            "type": "chrome",
            "request": "launch",
            "name": "Launch Chrome - ICN plugin widgets",
            "url": "http://localhost/navigator/?desktop=cr",
            "runtimeArgs": [
                "--user-data-dir",
                "--remote-debugging-port=9222"
            ],
            "userDataDir": "${workspaceRoot}/.vscode/chrome",
            "webRoot": "${workspaceRoot}/ProjectWidgetsWEB/WebContent/",
            "pathMapping": {
                "/ProjectWidgetsWEB/": "${webRoot}"
            },
            "sourceMaps": false
        }
    ]
}

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.