Tuesday, May 5, 2020

Setting up vscode-bash-debug - Only bash versions 4.* or 5.* are supported.


While working through vscode-bash-debug setup

I hit this error: Only bash versions 4.* or 5.* are supported.

 







For macosx users (we appear to be the users hitting this issue), the solution is to simply to update the bash version, which can be done in about 30 seconds with a single brew command:


brew install bash

after this restart VSC and should pickup bash version 5.x :)

More details in my bash-by-example repo (my notes and scripts around common command-line bash tasks):

https://github.com/dgapitts/bash-by-example/blob/master/example_003_vscode-bash-debug_setup_and_brew/README.md


NB This part of a buffer project to make handy notes on the various bash cli/scripting tool I typically use

- https://github.com/dgapitts/bash-by-example