rogalmic / vscode-bash-debug

Bash shell debugger extension for VSCode (based on bashdb)
MIT License
222 stars 26 forks source link

bashdb not found #97

Open lhk opened 6 years ago

lhk commented 6 years ago

Executables

Version of bash-debug: 0.3.2

Version of Code: 1.28.2 7f3ce96ff4729c91352ae6def877e59c561f4850 x64

Executing the second command:

Linux vbox 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
---
/bin/bash
GNU bash, version 4.4.19(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
---
bash: bashdb: command not found
---
/bin/cat
cat (GNU coreutils) 8.28
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Torbjorn Granlund and Richard M. Stallman.
---
/usr/bin/mkfifo
mkfifo (GNU coreutils) 8.28
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David MacKenzie.
---
/usr/bin/pkill
pkill from procps-ng 3.3.12


## Details
I'm trying to debug a simple script but as soon as I start the debugging, there is an error message:
Debug adapter process has terminated unexpectedly (read ECONNRESET)

It looks to me as if bashdb isn't found. But isn't that supposed to be included in the extension ?
The website says: _A bash debugger GUI frontend based on awesome bashdb scripts (bashdb now included in package)._
rogalmic commented 6 years ago

Bashdb is integrated in extensions folder.

Please uninstall the marketplace version ad try installing manually ("Install from VSIX") version: https://github.com/rogalmic/vscode-bash-debug/releases/tag/untagged-75ab034169eb5c9d1464

Try different terminalKinds in launch.json (integrated, external, debugConsole), also try changing your default console shell for project:

        {
            "type": "bashdb",
            "request": "launch",
            "name": "Bash-Debug (simplest configuration)",
            "program": "${file}",
            "showDebugOutput": true,
            "terminalKind": "integrated" 
        },

In any case, please provide output from debug console and terminal (if applicable).

EDIT: Just to be clear, bashdb does not need to be installed in system anymore...