Brainduck
Brainduck copied to clipboard
Step backwards
If at all possible in BF, it would be useful to "step backwards" while debugging so that you can easier find where things go wrong when they go wrong
For this you'd need to know a couple of things:
-
,
what was the value of the cell before the operation? - if there is a
[
or]
before the command, how many times has the loop been performed? Was it ever performed? Should we go backwards to before[
or before]
?
The other commands are pretty clear how they should be reversed.