In this video, go through the basics of debugging in an Express application by adding a few commands into the CLI or package.json file.
- [Narrator] So, if the word debugging…makes you run for the fences,…you'll be happy to know that setting up…debugging in Express is very easy.…Then, the information you get is crucial to help you…figure out what's happening with your application…as the routes are called.…Let me demonstrate.…So, go back to VS Code.…Click on View, Integrated Terminal.…And then let's shut down our server here…by doing Control + C.…And let me show you the way you do debugging,…and then I'm going to show you the Windows way of doing it.…
So, let's clear that up, so let's clear our terminal here.…The way you do debugging with an Express application…inside of a Mac, or Linux, is this way.…So, you do debug…equals…express,…colon, star…and then node…index.js or whatever is the file that you have…that starts your server.…So that would start it for a Mac…or a Linux operating system.…
So, if you want to do it for Windows,…basically what you change is…at the beginning of your command,…you add set and then…basically where you have…the star here you add an ampersand, like so.…
- Creating a basic data endpoint
- Routing with Express
- Adding a static route for file serving
- Basic middleware with Express
- Built-in middleware and error-handling middleware
- Debugging in an Express application
- Security best practices with Express
Skill Level Beginner
1. Setting Up Express
2. Getting Started
3. Routing with Express
4. Middleware with Express
5. Advanced Topics in Express
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.