feat(debugger): set a scalar variable from the editor #379
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/38-debugger-setvariable"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #38
Implements
setVariable(DEBUGGER.md section 20): numbers,BoolandCharin locals, record/tuple/shared-object fields, fixed-array items, capturedvars andvarparameters, from a literal that fits the type.Valuegainsplace/block; after a write every reference of the stop is re-read. Lists/maps/sets, case payloads, non-scalars and constant data are refused with a message. Docs,skills/copy, unit tests (compiler/tests/debugger.test.trb) and the sessiontests/debug/set-variable.*are included;supportsSetVariableis nowtruein the existing sessions.The
.expectedof the new session was written by hand; the CI diff oftools/debug.shis authoritative and will be applied on this branch.7a35d69c417131dbfaf77131dbfaf7a5a8c237efsetVariable#38Approved at
a5a8c23. Checklist:wordOfLiteral(range, sign, Float32 rounding, kind mismatches, non-literals) incompiler/tests/debugger.test.trb, plus thetests/debug/set-variablesession covering locals, record/tuple/array/shared-object fields, avarparameter and every refusal path. CI is green on this head, including tier A and tier B, which runtools/debug.sh. That confirms the hand-written.expectedmatches the adapter's output, so no follow-up commit is needed for it.Machine.store. Only single-word scalars with a known place are written. List/map/set items and case payloads get place 0 and are refused. Immortal blocks are refused. Capturedvars go through the box. References are re-read after a write.supportsSetVariableflip in the existing.expectedfiles is the direct consequence.docs/tooling/torb-debug.mdand theskills/copy are updated and identical. The pdisc check is green.