Member-only story

Dennis O'Keeffe
6 min readFeb 2, 2021

--

Heading image

VSCode comes jam-packed with some incredible tools to help you build your applications.

One such tool is the built-in debugger. This debugger can make life far easier when you are debugging Node.js applications!

In today’s post, we will create an incredibly simple Node.js application to sum two numbers and show how the debugger can be a powerful tool for help to run through your programs and identify issues.

Getting started

We will initialise a new npm project and install jest from your root directory of choice and create some files to run things through:

Open your new hello-vscode-nodejs-debugger folder in VSCode and you will be set to start adding files!

Setting up math.js and adding a simple test

In math.js, add the following:

--

--

Dennis O'Keeffe
Dennis O'Keeffe

No responses yet