4 ms·
$ alias breakpoint alias breakpoint=' while read -p"Debugging(Ctrl-d to exit)> " debugging_line do eval "$debugging_line" done '
by porridgeraisin 2y ago
$ 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 script
- JoelMcCracken 2y agoNice. 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