Revision 14716
Added by Aaron Marcuse-Kubitza about 10 years ago
trunk/lib/sh/util.sh | ||
---|---|---|
333 | 333 |
|
334 | 334 |
pf() { declare -f "$@" >&"$debug_fd"; } # usage: pf func... # prints func decls |
335 | 335 |
|
336 |
pst() { print_stack_trace; } # no skip_stack_frame so know where called from |
|
337 |
# *note*: don't call from logging functions b/c will cause infinite recursion |
|
336 | 338 |
|
339 |
|
|
337 | 340 |
#### caching |
338 | 341 |
|
339 | 342 |
## shell-variable-based caching |
Also available in: Unified diff
lib/sh/util.sh: debugging: added pst() (print_stack_trace)