Freelance Project Requests info@CodeDocu.de Software Development in C# WPF Asp.Net Core Vba Excel Word SQL-Server EF Linq, UWP Net
#

 

 

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

 

 

 

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"

      ]

    }

  ]

}

 

 

Mobile
»
SharePoint Code: Get ListItem by Code
»
Debugging with the Microsoft Browser in VS Code
»
Debugging von SharePoint in Visual Studio Code
»
Publish Install SharePoint WebPart on Server
»
Enable JS-Link for WebParts in SharePoint

.

Contact for Jobs, Project Requests: raimund.popp@microsoft-programmierer.de