debugging
Here are some debugging tools.
assert
-- insist on something
backtrace
-- trace the evaluation chain after an error
benchmark
-- benchmark some code
browse
-- examine a list or hash table
code
-- display source code for a function
edit
-- edit source code for a function
error
-- signalling an error
errorDepth
-- set the error depth
examine
-- examine socpes bound in a closure
flag
-- flag each use of a symbol
frame
-- get frame for a function closure
listUserSymbols
-- display global variables defined by user
locate
-- locate the source code of a function
methods
-- find methods installed for a function
on
-- trace entry into a function
peek
-- print contents of something
peek2
-- print contents of something to a certain depth
profile
-- record run times for functions
shield
-- shield interpreted code from interrupts
try
-- catching errors
userSymbols
-- list global variables defined by user
These functions are for debugging the kernel interpreter itself, and are not intended for users.
buckets
-- display contents of buckets in a hash table
seeParsing