CodeDocu.com

 

 

In order to debug a SharePoint application or a SharePoint WebPart directly in VSCode, you have to use the launch.json file in the

Name: Hosted workbench the registration url: enter the SharePoint Workbench on the target server system

the hosted workbench is an office365 tenant, which is an addition that is integrated into the sharepoint environment via the office365 environment

 

"name""Hosted workbench",

      "type""chrome",

      "request""launch",

 

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

 

      "webRoot""${workspaceRoot}",

 

 

 

 

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

 

Debugging von SharePoint in Visual Studio Code

 

 

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"

      ]

    }

  ]

}

 

 


Software Entwicklung Stuttgart NĂ¼rtingen
Suche Projekte C#, WPF, Windows App,ASP.Net, vb.Net, WinForms, SQL Server, Access, Excel