May 10, 2019

Setup Bash Debugger in VS Code

Recent projects need some bash scripting, besides bashdb in terminal, GUI bash debugging make life much easier:

  1. Follow all steps in Upgrading Bash on macOS to update bash (need bash > 4.0)
  2. Install bashdb: brew install bashdb
  3. In VS Code:
    1. Install extension Bash Debug
    2. Configure bash debugger by https://marketplace.visualstudio.com/items?itemName=rogalmic.bash-debug
    3. Additional configure: add "terminalKind": "debugConsole" to launch.json to each configuration