Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Einstellen der Startpage zum Debuggen eines Webparts in SharePoint React

23.03.2020 (👁710)

SPO: wie kann man die Start-Datei in SharePoint Webpart ändern

Startpage, Webpart, React Webpart, Browser

SharePoint : Debuggen mit Browser, VS Code

Man kann die Startpage in der launch.json im Verzeichnis .vscode einstellen.

Hier kann man auch einstellen, mit welchem Browser bei F5 Start Debug aus VSCode gestartet werden soll

In .vscode/launch.json

"url": "https://comlinesetest.sharepointonline.com/_layouts/workbench.aspx",

 

 

launch.json

Pfad+Datei: .vscode/launch.json

{

  /**

   * Install Chrome Debugger Extension for Visual Studio Code to debug your components with the

   * Chrome browser: https://aka.ms/spfx-debugger-extensions

   */

  "version""0.2.0",

  "configurations": [{

      "name""Local workbench",

      "type""chrome",

      "request""launch",

      "url""https://localhost:4321/temp/workbench.html",

      "webRoot""${workspaceRoot}",

      "sourceMaps"true,

      "sourceMapPathOverrides": {

        "webpack:///.././src/*""${webRoot}/src/*",

        "webpack:///../../../src/*""${webRoot}/src/*",

        "webpack:///../../../../src/*""${webRoot}/src/*",

        "webpack:///../../../../../src/*""${webRoot}/src/*"

      },

      "runtimeArgs": [

        "--remote-debugging-port=9222"

      ]

    },

    {

      "name""Hosted workbench",

      "type""chrome",

      "request""launch",

      "url""https://comlinesetest.sharepointonline.com/_layouts/workbench.aspx",

      "webRoot""${workspaceRoot}",

      "sourceMaps"true,

      "sourceMapPathOverrides": {

        "webpack:///.././src/*""${webRoot}/src/*",

        "webpack:///../../../src/*""${webRoot}/src/*",

        "webpack:///../../../../src/*""${webRoot}/src/*",

        "webpack:///../../../../../src/*""${webRoot}/src/*"

      },

      "runtimeArgs": [

        "--remote-debugging-port=9222",

        "-incognito"

      ]

    }

  ]

}