Skip to content

v0.8.0

Latest

Choose a tag to compare

@yasukei yasukei released this 27 Oct 06:51
· 56 commits to main since this release
1ea0e27

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 a Value output, 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 and SUPER(), 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 annotations is an array of { pou, instance, scanCount, lines }
      bodies instead of a record keyed by POU. Annotated function bodies add
      caller: { pou, instance, line }.
    • watchBodies replaces the watched set. Function watches use a null
      instance, and function block and class watches cover all their methods.
      Until the first watchBodies after load, the first instance of every
      PROGRAM is watched.
    • RuntimeState gains HALT. setBreakpoints, continue and debugStep
      are new commands; step remains a single scan.
    • The new halted event 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, continue and debugStep, with
      the runtime.halted and runtime.not-halted codes.
    • PROGRAM IR keeps call-local declaration names for halted value reporting.
  • 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 increments scanCount.