Use a debugger: breakpoints, watches and stepping
12 steps · about 4 h 25 min · Beginner
- Java Debugging with Eclipse - Tutorial (guide, vogella, 20 min)
It defines breakpoints, watchpoints and the step into, over and return controls before you meet any specific tool.
- Debugging in Code::Blocks: Breakpoints, Step Over, Step Into, Watches (tutorial, Island Class, 20 min)
A short hands-on lesson where you set breakpoints, step, and see a Watches window reveal a surprising float value.
- Debug code with Visual Studio Code (doc, Visual Studio Code docs, 30 min)
The official guide to the free editor most learners use, covering the Variables, Watch and Call Stack panels and the step keys.
- VSCode Debugger Guide - CSE 123 (guide, University of Washington CSE 123, 15 min)
A course guide on where to put breakpoints and how to narrow in on a bug, plus conditional breakpoints.
- Tutorial: Learn to debug Visual Basic code using Visual Studio (tutorial, Microsoft Learn, 25 min)
A guided walkthrough with a loop that adds a watch on a variable and follows it as it changes, then examines the call stack.
- Tutorial: Learn to debug C# code using Visual Studio (tutorial, Microsoft Docs (GitHub), 25 min)
The same debugging workflow in C#, so you see that the ideas carry across languages.
- Debug JavaScript | Chrome DevTools | Chrome for Developers (doc, Chrome for Developers, 25 min)
Debug web code in the browser with no setup, and see why breakpoints beat console.log.
- How to Use Developer Tools to Debug JavaScript in the Browser (tutorial, freeCodeCamp, 15 min)
It tours the Watch, Scope and Call Stack panes in browser tools and works through a bug.
- How to Debug Your Python Code with the Python Debugger (pdb) (tutorial, freeCodeCamp, 20 min)
This shows the same ideas as text commands, which helps when no graphical debugger is available.
- Debugging with GDB (article, BetterExplained, 20 min)
A command-line debugger for C and C++ that introduces watchpoints, step, and finish.
- Tutorial: Debug C++ code with Visual Studio (tutorial, Microsoft Learn, 25 min)
It goes further with Run to Cursor, data tips and the debugger windows.
- Node.js debugging in VS Code (doc, Visual Studio Code docs, 25 min)
It ends with advanced breakpoints, such as conditional and hit-count ones, for loops that run many times.