Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Debugging in Node.js and Azure

54 views

Published on

Debugging in Node.js and Azure

Published in: Engineering
  • Be the first to comment

  • Be the first to like this

Debugging in Node.js and Azure

  1. 1. Debugging in Node.js and Azure Brian Clark _clarkio
  2. 2. Starting Out
  3. 3. Demo
  4. 4. Built-in Debugger
  5. 5. Built-in Debugger Terminal or Command Line Navigate with Commands Debugger; Manual Watches
  6. 6. $ node inspect server.js NowBefore $ node server.js
  7. 7. Navigation
  8. 8. Navigation cont, c next, n step, s out, o quit/restart list
  9. 9. Demo
  10. 10. Chrome Dev Tools
  11. 11. $ npm install –g node-inspector $ node-inspect server.js $ node server.js $ node --inspect server.js BeforeNow
  12. 12. Chrome DevTools 55+ comes with built-in support for debugging Node.js apps
  13. 13. Demo
  14. 14. Code Editor
  15. 15. Visual Studio Code
  16. 16. Visual Studio Code Launch Options Debug View Easy Navigation JavaScript/Node.js Friendly
  17. 17. Visual Studio Code Remote debugging options Call stack monitoring View watched variable values Step through code One click breakpoints Stay in context
  18. 18. Visual Studio Code Remote debugging options Stay in context
  19. 19. Demo
  20. 20. Azure
  21. 21. Azure
  22. 22. Azure
  23. 23. Azure
  24. 24. Azure
  25. 25. Azure
  26. 26. Summary Console.log Chrome DevTools Visual Studio Code Azure Interactive Inspector
  27. 27. © DEVintersection 2017. All rights reserved. https://www.DEVintersection.com References  Node Debugger  https://nodejs.org/api/debugger.html  Visual Studio Code Debugging  https://code.visualstudio.com/docs/editor/debugging  VS Code Debugger for Chrome  https://github.com/Microsoft/vscode-chrome-debug  Node.js Apps in VS Code  https://code.visualstudio.com/docs/runtimes/nodejs  Azure Application Insights  https://docs.microsoft.com/en-us/azure/application-insights/app-insights-nodejs-quick- start
  28. 28. © DEVintersection 2017. All rights reserved. https://www.DEVintersection.com Please use EventsXD to fill out a session evaluation. Thank you! Brian Clark _clarkio

×