I have an spfx webpart I'm trying debug in chrome. My launch.json file looks like the following:

            "name": "Hosted workbench",
            "type": "chrome",
            "request": "launch",
            "url": "https://{tenant}.sharepoint.com/sites/{sitename}/_layouts/workbench.aspx",
            "webRoot": "${workspaceRoot}",
            "sourceMaps": true,
            "sourceMapPathOverrides": {
                "webpack:///.././src/*": "${webRoot}/src/*",
                "webpack:///../../../src/*": "${webRoot}/src/*",
                "webpack:///../../../../src/*": "${webRoot}/src/*",
                "webpack:///../../../../../src/*": "${webRoot}/src/*"
            "resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
            "runtimeArgs": ["--remote-debugging-port=9222", "-incognito"]

Running gulp serve --nobrowser seems to work fine. I then click the Run and Debug button which then launches chrome. The url redirects to the Microsoft page and then just stalls. The tab is in an endless load spinner and the login page is blank.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Browse other questions tagged or ask your own question.