A debugger for Whitespace assembler programs.
It can be hard to reason about the state of a Whitespace program. This debugger might give you some insight.
...or, if you use the scripts in the bin
directory...
The optional -x
flag enables extensions to the original
Whitespace language.
The debugger will assemble the program. Then it will open the debugger at the point where the first instruction is about to be executed.
If you put some debugger commands in myfile.wsa.wsdrc
they will be executed when the debugger starts. The format for these
commands is the same as the interactive commands described below. For
example, you could set some breakpoints and tell the debugger to
run.
If your Whitespace program reads user input, that won't work because
user input is going to the debugger. Instead, put the program's input
into myfile.wsa.wsdin
.
s n
, stop at
n
cl n
, clear at
n
stop
, s
,
cl
ss i v
sh a v
a
af
r
, cont
,
co
n
, step
,
step in
o
, step out
,
step up
l
l n
m foo
"heap", "list", "stack", "analyse"
u
, m
,
monitor
u foo
q
, exit
, e
,
x
h
, ?