Can I get a trace of TypeScript statements executed in a SharePoint SPFx client web part?
-
08-12-2020 - |
题
Is there a way with gulp serve to get a trace of TypeScript statements that are executed in a SPFx client application ?
解决方案
There is some logging support built into the framework. Documentation can be found here - https://github.com/SharePoint/sp-dev-docs/wiki/Working-with-the-Logging-API , and a blog post by Wictor here - http://www.wictorwilen.se/sharepoint-framework-nuggets-logging-like-a-pro