Next: Building and Running, Previous: STARTER Debugger, Up: STARTER Debugger [Contents]
When I started writing the first STARTER rules, I could never quite tell what state the system was in.
I built Grafana dashboards and had a full view of the history of any input or output—but when something changed, I never knew for sure whether the behaviour was correct or whether something was wrong. Sometimes a service had crashed. Sometimes a sensor simply stopped answering. Every time I had to sit down at the PC, check that the services were up, that the Core was responding, and dig through the database to see when a particular input or output had last moved.
That was manageable at the beginning. The more services I added, the
less I could keep the plant in my head. So I decided to build something
that would let me attach on the fly, ask for the current state, force
I/O values, and watch the rules as they fire. That is where
starter-debugger came from.
It is an interactive command-line client for the remote debug interface
of starter-core (org.starter.Core.Debug over GDBus/TCP).
You can inspect peers, I/O, and variables; monitor live signals; set
breakpoints and watchpoints; and poke inputs or outputs while rules
run. It does not replace plant logging or dashboards: those still own
history. The debugger is for now—live inspection and
controlled pauses around rule apply on the Core.
starter-debugger is distributed under the GPL version
3 or later (see GNU General Public License). This manual is under the
FDL (see GNU Free Documentation License).