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

Direktes Debuggen von SharePoint in Visual Studio Code

17.12.2019 (πŸ‘1245)

Debuggen von SharePoint in Visual Studio Code

Damit man eine SharePoint Applikation oder ein SharePoint WebPart in VSCode direkt debuggen kann, muss man in der Datei launch.json im Bereich

Name: Hosted workbench die Eintragung url: die SharePoint Workbench auf dem Ziel-Serversystem eintragen

Bei dem Hosted Workbench handelt es sich um ein Office365 Tenant, also ein Zusatz welcher ΓΌber die Office365 Umgebung integriert wird in der SharePoint Umgebung

"name""Hosted workbench",

      "type""chrome",

      "request""launch",

      "url""https://mySite.sharepoint.com/_layouts/workbench.aspx",

      "webRoot""${workspaceRoot}",

Betrifft: SharePointOnline, Sharepointonline.com, Sharepoint onPremise, Framework, SharePoint Cloud

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://mySite.sharepoint.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"

      ]

    }

  ]

}