Next: Evaluation, Previous: Shortcuts, Up: Interactive Perl
Unfortunately Sepia does not use Perl's debugger hooks, so it
does not support a true debugger with breakpoints, single-stepping, etc.
However, the REPL overrides the die()
and warn()
operators, allowing it to intercept failures while their context is
still available. This makes it possible to produce a backtrace, inspect
and modify global variables, and continue execution. If the PadWalker
module is available, Sepia also provides functions to inspect and modify
lexical variables.
The debugger has its own set of shortcuts, also prefixed by a comma.
Carp::cluck
.
die()
or warn()
had returned the
value of expr, which is evaluated in the global environment.