Next: Evaluation, Previous: Shortcuts, Up: Interactive Perl
Sepia uses Perl's debugger hooks and GUD mode to support conditional
breakpoints and single-stepping, and overrides Perl's die()
to
invoke the debugger rather than unwinding the stack. This makes it
possible to produce a backtrace, inspect and modify global variables,
and even continue execution when a program tries to kill itself. 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.
die()
.
die()
had returned the value of
expr, which is evaluated in the global environment.