rogalmic / vscode-bash-debug

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

examine.sh: line 71: typeset: $var0: not found #187

Open jollymover opened 1 year ago

jollymover commented 1 year ago

Hi,

Thank you so much for your work!

I got an error when I hover mouse pointer over a variable like:

/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/command/examine.sh: line 71: typeset: $var0: not found

So, I don't see var's value, just quotes.

For other variable hovering works fine.

If I set new value for the variable, hovering works fine as well.

Executables

Version of bash-debug: (can be checked in: ctrl+shift+X or command+shift+X -> INSTALLED: Bash Debug) v0.3.9

Output of following commands (on windows, execute them in Command Prompt or PowerShell):

$ code --version
1.82.2
abd2f3db4bdb28f9e95536dfa84d8479f1eb312d
x64

bash -c 'uname -a; for P in bash bashdb cat mkfifo pkill; do echo ---; which -a $P; command $P --version; done'
Linux base4 5.15.0-82-generic #91-Ubuntu SMP Mon Aug 14 14:14:14 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
---
/usr/bin/bash
/bin/bash
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2020 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: line 1: bashdb: command not found
---
/usr/bin/cat
/bin/cat
cat (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://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
/bin/mkfifo
mkfifo (GNU coreutils) 8.32
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://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
/bin/pkill
pkill from procps-ng 3.3.17

Debug output

Paste here outputs in DEBUG CONSOLE (ctrl+shift+D or command+shift+D) with "showDebugOutput": true and "trace": true in launch.json.

From client: initialize({"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"bashdb","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true,"supportsArgsCanBeInterpretedByShell":true,"supportsMemoryEvent":true,"supportsStartDebuggingRequest":true}) To client: {"seq":0,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsConditionalBreakpoints":true,"supportsConfigurationDoneRequest":false,"supportsEvaluateForHovers":true,"supportsStepBack":false,"supportsSetVariable":false}} From client: launch({"type":"bashdb","request":"launch","name":"Bash-Debug (simplest configuration)","program":"/home/ddmitriev/test.sh","terminalKind":"integrated","showDebugOutput":true,"trace":true,"configurationTarget":6,"args":[],"argsString":"","env":{},"cwd":"/home/ddmitriev","pathBash":"bash","pathBashdb":"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb","pathBashdbLib":"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir","pathCat":"cat","pathMkfifo":"mkfifo","pathPkill":"pkill","sessionId":"263b0c02-54a0-4faf-9962-43756fa59e11"}) To client: "runInTerminal"({"kind":"integrated","title":"Bash Debug Console","cwd":".","args":["bash","-c","cd \"/home/ddmitriev\"; while [[ ! -p \"/tmp/vscode-bash-debug-fifo-16520\" ]]; do sleep 0.25; done; \"bash\" \"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb\" --quiet --tty \"/tmp/vscode-bash-debug-fifo-16520\" --tty_in \"/tmp/vscode-bash-debug-fifo-16520_in\" --library \"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir\" -- \"/home/ddmitriev/test.sh\" "]}), timeout: 10000 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stderr","output":"::PROXYID::126582\n"}} ::PROXYID::126582 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(/home/ddmitriev/test.sh:3):\n3:\tdeclare var0=0\n"}} (/home/ddmitriev/test.sh:3): 3: declare var0=0 To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"Sending StoppedEvent"}} To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"break","threadId":42}} To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"Debug environment: bash_ver=5.1.16(1)-release, bashdb_ver=4.4-0.94-mod, program=/home/ddmitriev/test.sh, args=\n"}} Debug environment: bash_ver=5.1.16(1)-release, bashdb_ver=4.4-0.94-mod, program=/home/ddmitriev/test.sh, args= From client: threads(undefined) To client: {"seq":0,"type":"response","request_seq":4,"command":"threads","success":true,"body":{"threads":[{"id":42,"name":"Bash thread"}]}} To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"116957\n"}} 116957 From client: stackTrace({"threadId":42,"startFrame":0,"levels":20}) To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"############################################################\n"}} ############################################################ To client: {"seq":0,"type":"response","request_seq":2,"command":"launch","success":true} To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"Sending InitializedEvent"}} To client: {"seq":0,"type":"event","event":"initialized"} To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"backtrace\n"}} backtrace To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"->0 in file /home/ddmitriev/test.sh' at line 3\n"}} ->0 in file/home/ddmitriev/test.sh' at line 3 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"##1 source"}}

1 sourceFrom client: setExceptionBreakpoints({"filters":[]})

To client: {"seq":0,"type":"response","request_seq":6,"command":"setExceptionBreakpoints","success":true} To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(\"/home/ddmitriev/test.sh\") called from file /home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102\n"}} ("/home/ddmitriev/test.sh") called from file/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"##2 main"}}

2 mainTo client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(\"--quiet\", \"--tty\", \"/tmp/vscode-bash-debug-fifo-16520\", \"--tty_in\", \"/tmp/vscode-bash-debug-fifo-16520_in\", \"--library\", \"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir\", \"--\", \"/home/ddmitriev/test.sh\") called from file `/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0\n"}}

("--quiet", "--tty", "/tmp/vscode-bash-debug-fifo-16520", "--tty_in", "/tmp/vscode-bash-debug-fifo-16520_in", "--library", "/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir", "--", "/home/ddmitriev/test.sh") called from file /home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"116957############################################################\n"}} 116957############################################################ To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"Execution breaks at '->0 in file/home/ddmitriev/test.sh' at line 3'\n"}} To client: {"seq":0,"type":"response","request_seq":5,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":0,"source":{"name":"test.sh","path":"/home/ddmitriev/test.sh","sourceReference":0,"adapterData":"bash-adapter-data"},"line":3,"column":0,"name":"->0 in file /home/ddmitriev/test.sh' at line 3"},{"id":1,"source":{"name":"bashdb","path":"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb","sourceReference":0,"adapterData":"bash-adapter-data"},"line":102,"column":0,"name":"##1 source(\"/home/ddmitriev/test.sh\") called from file/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102"},{"id":2,"source":{"name":"bashdb","path":"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb","sourceReference":0,"adapterData":"bash-adapter-data"},"line":0,"column":0,"name":"##2 main(\"--quiet\", \"--tty\", \"/tmp/vscode-bash-debug-fifo-16520\", \"--tty_in\", \"/tmp/vscode-bash-debug-fifo-16520_in\", \"--library\", \"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir\", \"--\", \"/home/ddmitriev/test.sh\") called from file /home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0"}],"totalFrames":4}} From client: threads(undefined) To client: {"seq":0,"type":"response","request_seq":7,"command":"threads","success":true,"body":{"threads":[{"id":42,"name":"Bash thread"}]}} From client: stepIn({"threadId":42}) To client: {"seq":0,"type":"response","request_seq":8,"command":"stepIn","success":true} To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"step\n"}} step To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(/home/ddmitriev/test.sh:4):\n4:\tdeclare var1=1\n"}} (/home/ddmitriev/test.sh:4): 4: declare var1=1 To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"Sending StoppedEvent"}} To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"break","threadId":42}} To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"116957############################################################\n"}} 116957############################################################ From client: threads(undefined) To client: {"seq":0,"type":"response","request_seq":9,"command":"threads","success":true,"body":{"threads":[{"id":42,"name":"Bash thread"}]}} From client: stackTrace({"threadId":42,"startFrame":0,"levels":20}) To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"backtrace\n"}} backtrace To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"->0 in file/home/ddmitriev/test.sh' at line 4\n"}} ->0 in file `/home/ddmitriev/test.sh' at line 4 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"##1 source"}}

1 sourceTo client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(\"/home/ddmitriev/test.sh\") called from file `/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102\n"}}

("/home/ddmitriev/test.sh") called from file `/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"##2 main"}}

2 mainTo client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(\"--quiet\", \"--tty\", \"/tmp/vscode-bash-debug-fifo-16520\", \"--tty_in\", \"/tmp/vscode-bash-debug-fifo-16520_in\", \"--library\", \"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir\", \"--\", \"/home/ddmitriev/test.sh\") called from file `/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0\n"}}

("--quiet", "--tty", "/tmp/vscode-bash-debug-fifo-16520", "--tty_in", "/tmp/vscode-bash-debug-fifo-16520_in", "--library", "/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir", "--", "/home/ddmitriev/test.sh") called from file /home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"116957############################################################\n"}} 116957############################################################ To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"Execution breaks at '->0 in file/home/ddmitriev/test.sh' at line 4'\n"}} To client: {"seq":0,"type":"response","request_seq":10,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":0,"source":{"name":"test.sh","path":"/home/ddmitriev/test.sh","sourceReference":0,"adapterData":"bash-adapter-data"},"line":4,"column":0,"name":"->0 in file /home/ddmitriev/test.sh' at line 4"},{"id":1,"source":{"name":"bashdb","path":"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb","sourceReference":0,"adapterData":"bash-adapter-data"},"line":102,"column":0,"name":"##1 source(\"/home/ddmitriev/test.sh\") called from file/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102"},{"id":2,"source":{"name":"bashdb","path":"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb","sourceReference":0,"adapterData":"bash-adapter-data"},"line":0,"column":0,"name":"##2 main(\"--quiet\", \"--tty\", \"/tmp/vscode-bash-debug-fifo-16520\", \"--tty_in\", \"/tmp/vscode-bash-debug-fifo-16520_in\", \"--library\", \"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir\", \"--\", \"/home/ddmitriev/test.sh\") called from file /home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0"}],"totalFrames":4}} From client: stepIn({"threadId":42}) To client: {"seq":0,"type":"response","request_seq":11,"command":"stepIn","success":true} To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"step\n"}} step To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(/home/ddmitriev/test.sh:5):\n5:\tvar2=2\n"}} (/home/ddmitriev/test.sh:5): 5: var2=2 To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"Sending StoppedEvent"}} To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"break","threadId":42}} To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"116957############################################################\n"}} 116957############################################################ From client: threads(undefined) To client: {"seq":0,"type":"response","request_seq":12,"command":"threads","success":true,"body":{"threads":[{"id":42,"name":"Bash thread"}]}} From client: stackTrace({"threadId":42,"startFrame":0,"levels":20}) To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"backtrace\n"}} backtrace To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"->0 in file/home/ddmitriev/test.sh' at line 5\n"}} ->0 in file `/home/ddmitriev/test.sh' at line 5 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"##1 source"}}

1 sourceTo client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(\"/home/ddmitriev/test.sh\") called from file `/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102\n"}}

("/home/ddmitriev/test.sh") called from file `/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"##2 main"}}

2 mainTo client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(\"--quiet\", \"--tty\", \"/tmp/vscode-bash-debug-fifo-16520\", \"--tty_in\", \"/tmp/vscode-bash-debug-fifo-16520_in\", \"--library\", \"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir\", \"--\", \"/home/ddmitriev/test.sh\") called from file `/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0\n"}}

("--quiet", "--tty", "/tmp/vscode-bash-debug-fifo-16520", "--tty_in", "/tmp/vscode-bash-debug-fifo-16520_in", "--library", "/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir", "--", "/home/ddmitriev/test.sh") called from file /home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"116957############################################################\n"}} 116957############################################################ To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"Execution breaks at '->0 in file/home/ddmitriev/test.sh' at line 5'\n"}} To client: {"seq":0,"type":"response","request_seq":13,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":0,"source":{"name":"test.sh","path":"/home/ddmitriev/test.sh","sourceReference":0,"adapterData":"bash-adapter-data"},"line":5,"column":0,"name":"->0 in file /home/ddmitriev/test.sh' at line 5"},{"id":1,"source":{"name":"bashdb","path":"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb","sourceReference":0,"adapterData":"bash-adapter-data"},"line":102,"column":0,"name":"##1 source(\"/home/ddmitriev/test.sh\") called from file/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102"},{"id":2,"source":{"name":"bashdb","path":"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb","sourceReference":0,"adapterData":"bash-adapter-data"},"line":0,"column":0,"name":"##2 main(\"--quiet\", \"--tty\", \"/tmp/vscode-bash-debug-fifo-16520\", \"--tty_in\", \"/tmp/vscode-bash-debug-fifo-16520_in\", \"--library\", \"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir\", \"--\", \"/home/ddmitriev/test.sh\") called from file /home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0"}],"totalFrames":4}} From client: stepIn({"threadId":42}) To client: {"seq":0,"type":"response","request_seq":14,"command":"stepIn","success":true} To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"step\n"}} step To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(/home/ddmitriev/test.sh:6):\n6:\tvar3=3\n"}} (/home/ddmitriev/test.sh:6): 6: var3=3 To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"Sending StoppedEvent"}} To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"break","threadId":42}} To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"116957############################################################\n"}} 116957############################################################ From client: threads(undefined) To client: {"seq":0,"type":"response","request_seq":15,"command":"threads","success":true,"body":{"threads":[{"id":42,"name":"Bash thread"}]}} From client: stackTrace({"threadId":42,"startFrame":0,"levels":20}) To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"backtrace\n"}} backtrace To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"->0 in file/home/ddmitriev/test.sh' at line 6\n"}} ->0 in file `/home/ddmitriev/test.sh' at line 6 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"##1 source"}}

1 sourceTo client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(\"/home/ddmitriev/test.sh\") called from file `/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102\n"}}

("/home/ddmitriev/test.sh") called from file `/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"##2 main"}}

2 mainTo client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(\"--quiet\", \"--tty\", \"/tmp/vscode-bash-debug-fifo-16520\", \"--tty_in\", \"/tmp/vscode-bash-debug-fifo-16520_in\", \"--library\", \"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir\", \"--\", \"/home/ddmitriev/test.sh\") called from file `/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0\n"}}

("--quiet", "--tty", "/tmp/vscode-bash-debug-fifo-16520", "--tty_in", "/tmp/vscode-bash-debug-fifo-16520_in", "--library", "/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir", "--", "/home/ddmitriev/test.sh") called from file /home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"116957############################################################\n"}} 116957############################################################ To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"Execution breaks at '->0 in file/home/ddmitriev/test.sh' at line 6'\n"}} To client: {"seq":0,"type":"response","request_seq":16,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":0,"source":{"name":"test.sh","path":"/home/ddmitriev/test.sh","sourceReference":0,"adapterData":"bash-adapter-data"},"line":6,"column":0,"name":"->0 in file /home/ddmitriev/test.sh' at line 6"},{"id":1,"source":{"name":"bashdb","path":"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb","sourceReference":0,"adapterData":"bash-adapter-data"},"line":102,"column":0,"name":"##1 source(\"/home/ddmitriev/test.sh\") called from file/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102"},{"id":2,"source":{"name":"bashdb","path":"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb","sourceReference":0,"adapterData":"bash-adapter-data"},"line":0,"column":0,"name":"##2 main(\"--quiet\", \"--tty\", \"/tmp/vscode-bash-debug-fifo-16520\", \"--tty_in\", \"/tmp/vscode-bash-debug-fifo-16520_in\", \"--library\", \"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir\", \"--\", \"/home/ddmitriev/test.sh\") called from file /home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0"}],"totalFrames":4}} From client: stepIn({"threadId":42}) To client: {"seq":0,"type":"response","request_seq":17,"command":"stepIn","success":true} To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"step\n"}} step To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(/home/ddmitriev/test.sh:8):\n8:\techo $var0 $var1 $var2 $var3\n"}} (/home/ddmitriev/test.sh:8): 8: echo $var0 $var1 $var2 $var3 To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"Sending StoppedEvent"}} To client: {"seq":0,"type":"event","event":"stopped","body":{"reason":"break","threadId":42}} To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"116957############################################################\n"}} 116957############################################################ From client: threads(undefined) To client: {"seq":0,"type":"response","request_seq":18,"command":"threads","success":true,"body":{"threads":[{"id":42,"name":"Bash thread"}]}} From client: stackTrace({"threadId":42,"startFrame":0,"levels":20}) To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"backtrace\n"}} backtrace To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"->0 in file/home/ddmitriev/test.sh' at line 8\n"}} ->0 in file `/home/ddmitriev/test.sh' at line 8 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"##1 source"}}

1 sourceTo client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(\"/home/ddmitriev/test.sh\") called from file `/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102\n"}}

("/home/ddmitriev/test.sh") called from file `/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"##2 main"}}

2 mainTo client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"(\"--quiet\", \"--tty\", \"/tmp/vscode-bash-debug-fifo-16520\", \"--tty_in\", \"/tmp/vscode-bash-debug-fifo-16520_in\", \"--library\", \"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir\", \"--\", \"/home/ddmitriev/test.sh\") called from file `/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0\n"}}

("--quiet", "--tty", "/tmp/vscode-bash-debug-fifo-16520", "--tty_in", "/tmp/vscode-bash-debug-fifo-16520_in", "--library", "/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir", "--", "/home/ddmitriev/test.sh") called from file /home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"116957############################################################\n"}} 116957############################################################ To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"Execution breaks at '->0 in file/home/ddmitriev/test.sh' at line 8'\n"}} To client: {"seq":0,"type":"response","request_seq":19,"command":"stackTrace","success":true,"body":{"stackFrames":[{"id":0,"source":{"name":"test.sh","path":"/home/ddmitriev/test.sh","sourceReference":0,"adapterData":"bash-adapter-data"},"line":8,"column":0,"name":"->0 in file /home/ddmitriev/test.sh' at line 8"},{"id":1,"source":{"name":"bashdb","path":"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb","sourceReference":0,"adapterData":"bash-adapter-data"},"line":102,"column":0,"name":"##1 source(\"/home/ddmitriev/test.sh\") called from file/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 102"},{"id":2,"source":{"name":"bashdb","path":"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb","sourceReference":0,"adapterData":"bash-adapter-data"},"line":0,"column":0,"name":"##2 main(\"--quiet\", \"--tty\", \"/tmp/vscode-bash-debug-fifo-16520\", \"--tty_in\", \"/tmp/vscode-bash-debug-fifo-16520_in\", \"--library\", \"/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir\", \"--\", \"/home/ddmitriev/test.sh\") called from file `/home/ddmitriev/.vscode-server/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' at line 0"}],"totalFrames":4}} From client: evaluate({"expression":"$var0","frameId":0,"context":"hover"}) To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"examine <$var0>\n"}} examine <$var0> To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"\n"}}

To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"116957############################################################\n"}} 116957############################################################ To client: {"seq":0,"type":"response","request_seq":20,"command":"evaluate","success":true,"body":{"result":"''","variablesReference":0}} From client: evaluate({"expression":"$var1","frameId":0,"context":"hover"}) To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"examine <$var1>\n"}} examine <$var1> To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"\n"}}

To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"116957############################################################\n"}} 116957############################################################ To client: {"seq":0,"type":"response","request_seq":21,"command":"evaluate","success":true,"body":{"result":"''","variablesReference":0}} From client: evaluate({"expression":"$var2","frameId":0,"context":"hover"}) To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"examine <$var2>\n"}} examine <$var2> To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"2\n"}} 2 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"116957############################################################\n"}} 116957############################################################ To client: {"seq":0,"type":"response","request_seq":22,"command":"evaluate","success":true,"body":{"result":"'2'","variablesReference":0}} From client: evaluate({"expression":"$var3","frameId":0,"context":"hover"}) To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"examine <$var3>\n"}} examine <$var3> To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"3\n"}} 3 To client: {"seq":0,"type":"event","event":"output","body":{"category":"stdout","output":"116957############################################################\n"}} 116957############################################################ To client: {"seq":0,"type":"response","request_seq":23,"command":"evaluate","success":true,"body":{"result":"'3'","variablesReference":0}} From client: disconnect({"restart":false}) To client: {"seq":0,"type":"event","event":"output","body":{"category":"stderr","output":"Terminated\n"}} Terminated To client: {"seq":0,"type":"response","request_seq":24,"command":"disconnect","success":true}



## Details
Details goes here.
valdemar1977 commented 11 months ago

The same for me on Mac. If I'm set for variable value 0 or 1 in watch I see only '', but echo get a right value