Bug 5 (was still present): Run from Stopped re-ran the stored script
and ignored the Target/Args entries. _on_run() now compares the
entries with the loaded target and starts the new target when they
differ.
Bug 8, staged-row variant (found by reviewing the live screenshot):
staged breakpoints share id 0, so a checkbox toggle / Remove / Edit on
one staged row landed on the first staged breakpoint instead — the
store row flipped but the session flag went to the wrong bp, and the
next refresh showed the wrong row unchecked. Session lookups now
match by (id, location) via _find_bp(); the UI tracks the selected
row location and the refresh re-selects by (id, location).
Tests: test_run_from_stopped_uses_new_target,
test_staged_toggle_hits_the_right_row. Full suite 28/28 under Xvfb;
Stop on a Gtk.main() debuggee verified live (0.02s, reaped).
Docstrings in debugger.py/debugger_ui.py updated (they are the
debugger docs; architecture.md already points at them).
- CanvasState on_bounds_change: programmatic resize, set_prop width,
set_bounds/move_to and handle drags fire it; selection changes and
unrelated prop edits do not.
- Inspector refresh_geometry: programmatic resize updates the width/
height spins in place (same editor widgets, no rebuild) and a spin
edit still live-applies; no-op with nothing selected.
- DebuggerWindow: Breakpoints label is the first child of its pane
(above the list) and sits above the tree in window coordinates;
Output label has a 6px top margin.
- debugger.py step_over: pdb stops once more at the --Return--
event inside the finishing function, so one extra `next` lands
in the caller (GDB `next` behaviour). A --Return-- stop at a
breakpoint line is no longer misreported as a breakpoint hit.
- debugger_ui.py: sync hit counts from pdb on every stop so the
breakpoint pane's Hits column shows the real count.
- tests: step over the last line of a function lands in the caller
(new test_step_over_last_line_lands_in_caller).
Full suite: 240 tests pass.
- lightgui/debugger.py: PdbSession driving python3 -m pdb in a
subprocess (start/run/restart, break/enable/disable/clear,
continue, step into/over/out, stack, locals, watches, stop).
State machine idle/running/stopped/exited; stop kills the whole
process group (SIGTERM then SIGKILL) so Stop can never hang on a
GUI app; Run from Stopped/Exited restarts with the current target
and re-applies breakpoints; no temp breakpoints (stop-on-entry
uses pdb's natural first stop, break-on-main is persistent).
- lightgui/debugger_ui.py: debugger window mirroring the C layout
(toolbar, Target row, status, breakpoints left, locals/watches/
stack right, output console). Breakpoint pane 420px / 320px
location column; in-place row updates + id-based selection
restore; checkbox toggles apply to the session first; watch and
locals trees have search disabled (no search popup on click).
- lightgui/install_libs.py: Install Libraries flow (package to
system site-packages, launcher to /usr/local/bin, .desktop to
/usr/local/share/applications); pkexec first, sudo -S fallback
with an Enter-submits password dialog; dry-run plan shown in the
dialog. pkexec is not installed on the server (same honest limit
as the C/Rust fix).
- app.py: Debug menu (Start Debugging, Toggle Breakpoint, Step
Into/Over/Out, Continue, Stop) + Tools > Install Libraries;
debugger stop scrolls the Code window to the stopped line.
- tests: 38 new tests (debugger session incl. breakpoint hit,
step over/into/out, locals, watches, continue to end, stop
kills the debuggee, restart from Exited, enable/disable;
install dry-run command construction/file list/paths).
Full suite: 239 tests pass.