$ alias breakpoint
alias breakpoint='
while read -p"Debugging(Ctrl-d to exit)> " debugging_line
do
eval "$debugging_line"
done
'
Good breakpoint repl you can insert anywhere in a bash scriptback
1 comments
Nice. I recently have been doing a bash deep dive and realizing that treating it like repl driven development is very useful. Been wondering if this is worth writing about for others.
You can also just execute another ‘bash’ process, of course the environment is a bit different