Skip to content
  1. LuzineDebug
  2. Guides

Debugging guides

Error pages fix one specific error. Guides teach you the method to find any bug: read a trace, set a breakpoint, isolate the faulty commit, shrink the problem to a minimal example.

How to read a stack trace (JS, Python, PHP, Java)

Read a stack trace in three passes: the error type and message, the reading direction of the language, then the first frame that points to your own co…

Beginner10 min7 steps

Debug JavaScript with Chrome DevTools

Open DevTools with F12, read the error in the Console, then set a breakpoint in the Sources panel to inspect variables line by line. The Network panel…

Beginner15 min7 steps

Debug Node.js with breakpoints (VS Code, Chrome)

Start Node with --inspect (or --inspect-brk to pause on the first line), then attach a debugger: Chrome through chrome://inspect or VS Code. The easie…

Intermediate15 min7 steps

Debug PHP with Xdebug 3 (PhpStorm, VS Code)

Install Xdebug, set xdebug.mode=debug and xdebug.start_with_request=trigger, then make your IDE listen on port 9003. Start a session with the Xdebug H…

Intermediate20 min8 steps

Read Docker container logs and debug a crashing container

docker logs -f --tail 100 my-container shows the last lines and follows the output live. If the container stopped, docker inspect gives its exit code…

Beginner12 min8 steps

Debug an Arduino with the Serial Monitor

Call Serial.begin(115200) in setup(), open the Serial Monitor and pick exactly the same baud rate: garbled characters almost always mean a different s…

Beginner15 min9 steps

Find the commit that broke your code with git bisect

git bisect runs a binary search through history: you mark a commit with the bug (bad) and one without it (good), Git checks out the middle and you say…

Intermediate12 min8 steps

How to create a minimal reproducible example

A minimal reproducible example is the smallest possible code that triggers the bug, along with versions and steps to reproduce it. Start from an empty…

Beginner15 min8 steps