Author Topic: Bash Debug  (Read 903 times)

pbrightly

  • Community Member
  • Posts: 68
  • Hero Points: 6
Bash Debug
« on: May 07, 2021, 01:14:11 AM »
Has anyone looked at how one would debug bash scripts in SlickEdit?  I think there's wrappers to bashdb and it would be awesome to see source-level debug for bash, like we have for other languages like python.

patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: Bash Debug
« Reply #1 on: May 07, 2021, 02:31:20 PM »
AFAIK, we haven't.  Bashdb was definitely under my radar.  I'll go ahead open a feature request for it.

Unfortunately, I don't think its use of gdb command syntax gives us a leg up given that we already support gdb.  For our gdb debugging support, we use the -mi machine interface commands, whose syntax is different, and not made for interactive use by people.


pbrightly

  • Community Member
  • Posts: 68
  • Hero Points: 6
Re: Bash Debug
« Reply #2 on: May 07, 2021, 02:57:14 PM »
Well, since Slick is my first love.. I want to wean myself off VSCode.  That's where I got the idea. I've recently remote-debugged bash in a plugin ("Bash Debug") that provides source-debugging like any other language, using bashdb under the covers.  No more stupid unreadable +x output.  It was...euphoric.   :D