From e2714b05eb06dd56710d975fcac7996c84ba2dd2 Mon Sep 17 00:00:00 2001 From: axel Date: Tue, 24 Apr 2007 07:10:26 +1000 Subject: [PATCH] Launch debug shell on TRAP signal. darcs-hash:20070423211026-ac50b-fccf4fb588775fbacc5cdc9f121abe417970066f.gz --- share/config.fish.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/config.fish.in b/share/config.fish.in index 681c90993..266e0bba9 100644 --- a/share/config.fish.in +++ b/share/config.fish.in @@ -86,6 +86,10 @@ for i in (printf "%s\n" $path_list|sgrep -E -v $path_regexp) end end +# Launch debugger on SIGTRAP +function fish_sigtrap_handler --on-signal TRAP --no-scope-shadowing --description "Signal handler for the TRAP signal. Lanches a debug prompt." + breakpoint +end if status --is-interactive . config_interactive.fish