Hacker News new | past | comments | ask | show | jobs | submit login

  $ 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



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




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: