3

Is there a way with gulp serve to get a trace of TypeScript statements that are executed in a SPFx client application ?

  • Can you explain a little bit what you are trying to achieve? Are you looking for logging to the console? Stack traces at various points in your code? – PatMill_MSFT Sep 23 '16 at 15:56
  • I am looking for being able to log statements that have been executed to a console. – Nigel Price Sep 24 '16 at 19:55
  • 1
    So are you looking for a stack trace on every function call? Logging when specific actions take place? Take a look at this post and see if it serves your needs - github.com/SharePoint/sp-dev-docs/wiki/… – PatMill_MSFT Sep 26 '16 at 17:52
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.