Articles about European Sharepoint Hosting Service
SharePoint 2013 Hosting – HostForLIFE.eu :: Testing SPFx Web Part Project
To preview the web part(s) on the browser, use the following commands
- gulp trust-dev-cert
- gulp serve
This will install a certificate and compile, build and run the application.
Once the “gulp serve” is successful, gulp compiles and opens local workbench.
SPFx Web part -Debugging – Logic
In SharePoint workbench, you can try to understand and debug the web part in the browser developer tool.
When gulp is running, and any change is saved in the project, gulp automatically compiles and builds the new code.
Once it is compiled, the latest code is available in the browser workbench developer tools window.
Alternatively, we can also debug/execute our local solution in SharePoint existing pages/web parts by appending the below query string onto the page URL in browser.
?loadSPFX=true&debug=true&enableconsolelog=true&forceAssembly=true&noredir=true&debugManifestsFile=https://localhost:4321/temp/manifests.js
It will open the “Allow Debug Manifests?” window. Click on “Load debug scripts” to run local solution.
Print article | This entry was posted by Peter on March 22, 2018 at 5:05 am, and is filed under European SharePoint 2013 Hosting. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |