Debugging Node.JS!

Log to console:

Throw Exceptions:

Debug with IDE:

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/dist/index.js",
"preLaunchTask": "tsc: build - tsconfig.json",
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
]
}
]
}

--

--

--

Curious Human, Software Developer and a Dog Lover

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

VS Code debugger configuration for Jest

MongoDB - A beginners guide

Top 3 JavaScript Online Courses

How to Optimise React with useMemo and React.memo — Kelvin Mwinuka

Complete Guide to PayPal Checkout - Server-Side Integration with React and Node.js

Is “Javascript” the real name of this language?

How Vue is different than React?

Jump-starting a fresh MacBook for Front End JavaScript development

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Aditya Bhamidipati

Aditya Bhamidipati

Curious Human, Software Developer and a Dog Lover

More from Medium

Node.js development consulting, the development speed booster you need

What is Node.JS ?

Introduction to Node.js

How to use fetch in NodeJS

Image saying { FETCH API }