debugger
A tool that pauses a running program so you can step through it line by line and inspect its variables.
An exposed debug port lets anyone who reaches it run code inside the service.
In more detail
A debugger lets you set breakpoints, step into and over function calls, and inspect variables while the program is paused. Most languages ship one, such as Python's pdb, and code editors provide graphical front ends.
Examples
Python's built-in debugger is pdb, started by calling breakpoint().In this course: Python ships with pdb, and editors provide graphical debuggers. A good failure report tells you exactly where to stand in the debugger.Related terms
- Compose override file — A second Compose file whose settings are merged on top of the main one, typically for development.
- port publishing — Forwarding a port on the host to a port inside a container so the service can be reached from outside.
- hot reloading — Having a running program pick up code changes automatically, without rebuilding or restarting by hand.
- pdb — Python's built-in command-line debugger, reached with breakpoint() or python -m pdb script.py.
- breakpoint — A marked place in a program where execution pauses so you can inspect it in a debugger.
- debugging — Finding and fixing the cause of a bug, by observing what the program actually does and comparing it with what it should do.
Taught in
- Health Checks, Dependencies And Reliable Startup — Docker Architecture & Production Containers
- Development Overrides, Hot Reloading And Debuggers — Docker Architecture & Production Containers
- Diagnostic Profiling: CPU Profiler & Heap Snapshots — Node.js Internals & Backend Services
- Editors, IDEs And Shells — Hands-on Python: Complete Video Course & Book
- Debugging: print, breakpoint, and the debugger — Hands-on Python: Complete Video Course & Book
- Dunder Methods, And Making Objects Pythonic — Hands-on Python: Complete Video Course & Book
- Making Failures Explain Themselves — Automated Testing, TDD & Quality Engineering