LabWired The easy way to build hardware
The LabWired code view paused on line 508 of a Rust game loop, with variables and call stack beside the code and the Nokia 5110 LCD frozen mid-frame.

Breakpoints in firmware, in a browser tab

Category: Engineering

To debug firmware you usually need the board, a probe, the right GDB, and a config file that worked last month. We wanted the part that matters without the rest: click a line, run, and the device stops there. Now it works in the playground. The simulated board pauses on your line, the LCD freezes mid-frame, and the variables show what the code sees.

What it looks like

The code view paused on line 508 of main.rs. The line is highlighted, values such as c1 = 643 show inline, the Variables panel shows game, c1, c2 and paddle with real values, and the Call Stack shows main.rs:508, main and Reset. The Nokia 5110 LCD beside it is frozen mid-frame.
Paused in the game loop. The LCD stops because the whole board stops, not only the CPU.

The example is a small game on a Nokia 5110 LCD, with an HC-SR04 distance sensor as the controller. Move the distance slider and the paddle follows. Click the gutter next to the game loop and a red dot appears. The next time the loop runs, the board stops on that line.

Everything is in the code view, the way it is in VS Code:

Step Over from line 508 goes to 509, then 511, then back to the top of the loop at 491. Press Continue and the board stops on 508 again, one frame later. Remove the breakpoint and the game runs again.

Try it

Open the Nokia 5110 example in the playground. The code view opens on src/main.rs. Click the gutter left of line 508 and the board stops there. You do not need an account.

What it does not do

Andrii Shylenko
Andrii Shylenko

Founder, LabWired.