How to Debug Node.js Code Using Multiple Tools

Published: 24 August 2022
on channel: Kinsta
2,219
32

It's inevitable: your Node.js code will fail at some point. 😅 See what tools you can use to debug applications and find the cause of a problem right here ✅
👉 Subscribe: https://www.youtube.com/c/Kinsta?sub_...

Node.js is a JavaScript runtime based on the same V8 engine used in Google’s Chrome browser. It is often used to build cross-platform server-side and terminal applications. Node.js has become increasingly popular over the past decade because it’s easy to install, practical to use, fast, and allows client-side web developers to leverage their skills elsewhere.

This tutorial demonstrates various tools to help debug applications and find the cause of a problem.

ℹ️ About Kinsta
Kinsta is a premium managed WordPress hosting company powered by Google Cloud Platform’s premium tier network and compute-optimized C2 virtual machines, enterprise-level security, a free CDN global edge network with 200+ PoPs, and 24/7/365 support.

👉Learn more about Kinsta’s hosting solutions: https://kinsta.com/wordpress-hosting/

⚙️Dig deeper in Kinsta’s tech stack and features: https://kinsta.com/features

👤Follow us:
► https://kinsta.com/blog/
► https://kinsta.com/newsletter/
►   / kinsta  
►   / kinstahosting  
►   / kinstahosting  

__________________________

🕘Timestamps

0:00 Intro
0:59 Set Appropriate Node.js Environment Variables
1:47 Use Node.js Command Line Options
2:07 Output Messages to the Console
2:54 Use a Third-Party Logging System
3:17 Use the V8 Inspector
3:57 Use the Chrome Browser to Debug Node.js Code
7:09 Conditional Breakpoints
7:44 Log Points
8:08 Use VS Code to Debug Node.js Applications
9:18 VS Code Advanced Debugging Configuration
10:37 Other Node.js Debugging Options

__________________________

📚 Resources

🧑🏻‍💻 VS Code extensions

👉 Connect to apps running in Docker ► containershttps://marketplace.visualstudio.com/...

👉 Connect to apps running on a remote server ► https://marketplace.visualstudio.com/...

👉 Connect to apps running on the Windows Subsystem for Linux (WSL) ► https://marketplace.visualstudio.com/...

🛠 How to Debug Node.js Code Using Multiple Tools
► https://kinsta.com/blog/node-debug/

#nodejs


On this page of the site you can watch the video online How to Debug Node.js Code Using Multiple Tools with a duration of hours minute second in good quality, which was uploaded by the user Kinsta 24 August 2022, share the link with friends and acquaintances, this video has already been watched 2,219 times on youtube and it was liked by 32 viewers. Enjoy your viewing!