⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sig.right

📁 bash debugger. You can use this tool to debug bash shell script
💻 RIGHT
字号:
(sig.sh:7):7:	if [[ "$1"x != x ]] ; then +# Test that debugged program's signals are saved and restored across+# debug calls.+### Testing that we have our signal set up...+info signalsSignal       Stop   Print   Stack     ValueEXIT         stop   noprint nostack   trap -- '_Dbg_exit_handler "$BASH_COMMAND"' EXITEXIT         stop   noprint nostack   trap -- '_Dbg_exit_handler "$BASH_COMMAND"' EXITSIGINT       stop   print   showstack trap -- '_Dbg_sig_handler 2 "$BASH_COMMAND" "$@"' SIGINTSIGQUIT      stop   print   showstack trap -- '_Dbg_sig_handler 3 "$BASH_COMMAND" "$@"' SIGQUITSIGILL       stop   print   showstack trap -- '_Dbg_sig_handler 4 "$BASH_COMMAND" "$@"' SIGILLSIGTRAP      stop   print   showstack trap -- '_Dbg_sig_handler 5 "$BASH_COMMAND" "$@"' SIGTRAPSIGTERM      stop   print   showstack trap -- '_Dbg_sig_handler 15 "$BASH_COMMAND" "$@"' SIGTERM+### Testing handle command...+handle TERM nostack+handle fooBad signal name: foo+handle 1000Bad signal number: 1000+handle TERM bogusNeed to give a command: stop, nostop, stack, nostack, print, noprint+eval kill -TERM $$Program received signal SIGTERM (15)...+### Should not have printed a stack trace above...+handle TERM noprint+handle TERM stack+handle INT nostop+eval kill -TERM $$+info signalsSignal       Stop   Print   Stack     ValueEXIT         stop   noprint nostack   trap -- '_Dbg_exit_handler "$BASH_COMMAND"' EXITEXIT         stop   noprint nostack   trap -- '_Dbg_exit_handler "$BASH_COMMAND"' EXITSIGINT       nostop print   showstack trap -- '_Dbg_sig_handler 2 "$BASH_COMMAND" "$@"' SIGINTSIGQUIT      stop   print   showstack trap -- '_Dbg_sig_handler 3 "$BASH_COMMAND" "$@"' SIGQUITSIGILL       stop   print   showstack trap -- '_Dbg_sig_handler 4 "$BASH_COMMAND" "$@"' SIGILLSIGTRAP      stop   print   showstack trap -- '_Dbg_sig_handler 5 "$BASH_COMMAND" "$@"' SIGTRAPSIGTERM      stop   noprint showstack trap -- '_Dbg_sig_handler 15 "$BASH_COMMAND" "$@"' SIGTERM+continue Program received signal SIGTERM (15)...->0 in file `dbg-cmds.inc' at line 2##1 _Dbg_do_eval("kill", "-TERM", "$$") called from file `dbg-cmds.inc' at line 343->2 _Dbg_onecmd("eval", "kill -TERM $$") called from file `dbg-cmds.inc' at line 157##3 _Dbg_cmdloop() called from file `dbg-sig.inc' at line 220##4 _Dbg_debug_trap_handler("0", "[[ "$1"x != x ]]") called from file `sig.sh' at line 7##5 source("sig.sh") called from file `bashdb' at line 277##6 main() called from file `bashdb' at line 0+### Should have printed a stack trace above...+continue +where ->0 in file `sig.sh' at line 741##1 source("sig.sh") called from file `bashdb' at line 277##2 main() called from file `bashdb' at line 0+continue Program received signal SIGINT (2)...->0 in file `sig.sh' at line 23##1 source("sig.sh") called from file `bashdb' at line 277->2 main() called from file `bashdb' at line 0Program received signal SIGINT (2)...->0 in file `sig.sh' at line 24##1 source("sig.sh") called from file `bashdb' at line 277->2 main() called from file `bashdb' at line 0Debugged program terminated normally. Use q to quit or R to restart.+kill sig.tests: line 11: xxxx Killed $BASH ${TOP_BUILDDIR}bashdb -B -q -L .. -x $cmdfile $debugged_script

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -