文章目录
经常在 IDE 下使用 高级语言后,往往并不习惯 shell 编程,因为没有酷炫的界面。但现在 vscode 可以很方便的调试 shell 脚本。

配置方法如下:
-
vscode 下载 Bash Debug 插件
-
mac 升级 bash 版本(因为此 vscode 插件需要 bash4 或 bash5,但 mac 默认的 bash 版本为 bash2)
-
选左侧边栏的 Debug 按钮,create a launch.json
经常在 IDE 下使用 高级语言后,往往并不习惯 shell 编程,因为没有酷炫的界面。但现在 vscode 可以很方便的调试 shell 脚本。
配置方法如下:
vscode 下载 Bash Debug 插件
mac 升级 bash 版本(因为此 vscode 插件需要 bash4 或 bash5,但 mac 默认的 bash 版本为 bash2)
选左侧边栏的 Debug 按钮,create a launch.json