Skip to content

This application is made with the objective that you can test the debugging tools as stated on my medium post (see https://leonardo-manzella-40328.medium.com). It includes Node inspection, NDB, Llnode, Log namespaces, Trace and Clarify.

Notifications You must be signed in to change notification settings

LeonardoManzella/node-debugging-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node debugging examples

Introduction

This application is made with the objective that you can test the debugging tools as stated on my medium post.

You can go to the following endpoints in your browser, each of these has a bug that you must solve to see the "Success Message", try to solve them using the tool indicated for each:

  • http://localhost:3000/examples/status (Check backend status first)
  • http://localhost:3000/examples/chrome-dev-tools (Use Chrome Dev Tools to find the error location, then fix it modifying the endpoint file)
  • http://localhost:3000/examples/ndb (Use NDB to not only find the bug but also fix it without leaving NDB, tip: use the "Pause on exceptions" option)
  • http://localhost:3000/examples/asynchronous-error (see the console log to find the file)

Note that by default we use a winston logger for logs (see the terminal).

Setup

Requirements

  1. Install Node.js

Installing dependencies

Go to project root folder:

$ cd node-debugging-examples

Then execute

$ npm install

Run the Examples

To run in standard mode use:

$ npm run dev

To run using NDB:

$ npm run debug

About

This application is made with the objective that you can test the debugging tools as stated on my medium post (see https://leonardo-manzella-40328.medium.com). It includes Node inspection, NDB, Llnode, Log namespaces, Trace and Clarify.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published