Trepan-Debuggers / zshdb

gdb-like "trepan" debugger for zsh
GNU General Public License v3.0
295 stars 23 forks source link

Termination of debugged script terminates zshdb #38

Closed jansorg closed 1 year ago

jansorg commented 1 year ago

Tested with HEAD of zshdb.

With this script test.sh:

echo hello world
exit 12

and these zshdb commands (step twice):

# zshdb --no-highlight --quiet ./test.sh 
(/home/jansorg/test.sh:1):
echo hello
zshdb<0> step
hello
(/home/jansorg/test.sh:2):
exit 12
zshdb<1> step

the session and zshdb is terminated, but IMHO it should print a message similar to bashdb (Debugged program terminated with code 12. Use q to quit or R to restart.)

rocky commented 1 year ago

Makes sense. I can add that when I get a chance.