Repository navigation
Debugging: inline values in every POU body for a chosen instance, breakpoints with a halted state, stepping, the call stack and a sorting conveyor debugging guide. Project files are unchanged; the core protocol between the UI and the runtime changes in breaking ways; see Changed.
Added
-
Sorting conveyor debugging guide with a Playwright acceptance walkthrough,
covering instance and body values, event breakpoints, halted I/O, stepping,
the call stack and keyboard shortcuts. The counter block body now publishes
its total through aValueoutput, preserving the conveyor trace. -
Statement debugging with Step over, Step into and Step out, keyboard shortcuts
that preserve control focus across halts, and a selectable call stack showing
invocation values and in-out actual locations.
Halted inline values now include unwatched bodies. -
Editor gutter breakpoints with active/inactive markers, line tracking through
edits and POU renames, browser autosave, halted statement highlighting and
Continue. A halt pauses the whole resource and preserves published outputs,
which panel lamps, numeric displays and I/O image readings keep showing. -
Inline values inside method and function bodies, with per-instance method calls,
class instance selection and localized function caller labels. Runtime debugger
support records every active frame's invocation when debugging is enabled at
task-run boundaries. -
Choose the instance shown by inline values in PROGRAM and function block sources,
with a path/type filter, derived instances, autosaved choices and older-scan labels. -
Runtime body watches collect function block statement values, including inherited
bodies andSUPER(), independently for each selected instance. -
Runtime documentation for internal resumable execution and its repeatable
scan-time benchmark. -
ADR 0018 documents the accepted debugging design for Milestone 8: choosing the
instance whose inline values a body shows, inline values in every body,
breakpoints, the halted state, stepping and the call stack.
Changed
- Breaking core protocol changes:
- Snapshot
annotationsis an array of{ pou, instance, scanCount, lines }
bodies instead of a record keyed by POU. Annotated function bodies add
caller: { pou, instance, line }. watchBodiesreplaces the watched set. Function watches use a null
instance, and function block and class watches cover all their methods.
Until the firstwatchBodiesafter load, the first instance of every
PROGRAM is watched.RuntimeStategainsHALT.setBreakpoints,continueanddebugStep
are new commands;stepremains a single scan.- The new
haltedevent reports the underlying operating state, the task and
the whole call stack, with each frame's values and invocation annotations. - Rejected commands include
run,step,continueanddebugStep, with
theruntime.haltedandruntime.not-haltedcodes. - PROGRAM IR keeps call-local declaration names for halted value reporting.
- Snapshot
- Halted time is excluded from execution times and skipped activations during a
halt are not overruns. Abandoned task runs leave task telemetry and due times
unchanged, while their scheduler pass still incrementsscanCount.