I was able to setup a debugger using a launch mode using Visual Studio Code with the Bash Debug extension. Is it possible to setup the debugger in VSCode to be able to debug a bash script using a attach debug mode?

For debugging scripts on the host machine and scripts inside a docker container?

4 points

Bash is an interpreted language, so you don’t really need a fancy debugger. You can just add an exit or suspend in the middle of the code to act as a breakpoint, or manually run the code one line at a time if you want to step through it.

permalink
report
reply

Linux 101 stuff. Questions are encouraged, noobs are welcome!

!linux4noobs@lemmy.world

Create post

Linux introductions, tips and tutorials. Questions are encouraged. Any distro, any platform! Explicitly noob-friendly.

Community stats

  • 50

    Monthly active users

  • 94

    Posts

  • 197

    Comments