
Learn to understand code execution and run the code in your mind to speed up debugging, remember function returns, and visualize how JavaScript and Node.js behave with animated demonstrations.
Understand the basics of code execution in JavaScript by tracing function calls, returns, and value propagation with a simple sum example using increment ten and console.log.
Explore how a stack trace records the sequence of steps leading to an error, using a house of cards analogy to reveal where the failure occurred and what it means.
DataDog, Graylog, New Relic, Sentry, LogRocket
fix bugs in a simple multiplication table app using logs only, validating inputs, examining event listeners, and debugging HTML output with Chrome DevTools to track inner HTML changes.
Learn how to use conditional breakpoints to pause code execution only when a condition, such as score equals five, is met, using Postman for requests and guiding the debugging flow.
Use log points to debug without restarting the app, display results length with curly braces, and add logs on the fly without redeploying.
Learn how uncaught exceptions crash apps, and how debugging pauses execution to reveal the error. Compare bare code with express safety features and practice fixing bugs to prevent crashes.
Master debugging javascript and nodejs using the debugger, breakpoints, and watch panels. Walk through line by line, visualize values, and identify bugs in loops and returns.
Add log points in Chrome DevTools by right-clicking a line and selecting log point to print variables. Toggle the console with ESC and log additional messages as needed.
Master the debugger console in DevTools, pause and inspect variables, step through functions, and use shortcuts like $0, $_, and copy to streamline debugging.
Pause code execution with Chrome DevTools by enabling break on caught and uncaught exceptions to pinpoint bugs, crashes, or freezes while debugging Ajax, fetch, or XHR requests.
Learn to pause code on any fetch, XHR, or Ajax request using Chrome DevTools breakpoints, or target a specific request by URL, aiding debugging of front-end requests.
```node app.js --inspect```
Thank you so much!
Don't forget to review the course ;)
Welcome to Debugging Fundamentals with Javascript/NodeJS!
In this class, you will dive into the world of debugging, an indispensable skill for all developers. Whether you're a seasoned programmer or just starting out, mastering debugging techniques will significantly enhance your ability to identify, troubleshoot, and resolve issues in your code efficiently.
Here's what you'll be learning in this class:
How to read error messages
Understanding Stack Traces
Learning how to execute the code in your mind
Navigating in the codebase efficiently
Debugging using logs
Throubleshooting
VSCode Debugger
Chrome Dev Tools Debugger
Extra content:
Using Chrome DevTools with a NodeJS process
Using Safari to inspect a page in your phone
DRY - Don't Repeat Yourself
Debugging isn't just about fixing errors; it's about gaining a deeper understanding of how your code works and developing the problem-solving mindset crucial for success in the field of software development. Throughout this course, you will learn a variety of strategies, tools, and best practices to streamline your debugging process and become a more effective coder.
By the end of this course, you will emerge as a proficient debugger with the ability to triage bugs faster, understand code intricacies better, and ultimately, become a more confident and resourceful developer.
Debugging is a must-have skill that will propel your career to new heights.
Enroll now and embark on your journey to become a better debugger.