vscode-bash-debug icon indicating copy to clipboard operation
vscode-bash-debug copied to clipboard

error `Unable to determine workspace folder.` when configuration is in user setting, not launch.json

Open xhiroga opened this issue 5 years ago • 1 comments

My debug configuration is in setting.json, not launch.json. When I started debug, bash-debug says "Unable to determine workspace folder."

Executables

Version of bash-debug: 0.3.6

/usr/local/bin/bash
/bin/bash
1.41.1
26076a4de974ead31f97692a0d32f90d735645c0
x64
Darwin hiroga-jict-MBP 19.0.0 Darwin Kernel Version 19.0.0: Thu Oct 17 16:17:15 PDT 2019; root:xnu-6153.41.3~29/RELEASE_X86_64 x86_64 i386 MacBookPro15,1 Darwin
---
/usr/local/bin/bash
/bin/bash
GNU bash, version 5.0.11(1)-release (x86_64-apple-darwin19.0.0)
Copyright (C) 2019 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
---
/usr/local/opt/coreutils/libexec/gnubin/cat
/bin/cat
cat (GNU coreutils) 8.31
Copyright (C) 2019 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/local/opt/coreutils/libexec/gnubin/mkfifo
/usr/bin/mkfifo
mkfifo (GNU coreutils) 8.31
Copyright (C) 2019 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
pkill: illegal option -- -
usage: pkill [-signal] [-ILfilnovx] [-F pidfile] [-G gid]
             [-P ppid] [-U uid] [-g pgrp]
             [-t tty] [-u euid] pattern ...

Debug output

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

    "launch": {
        "version": "0.2.0",
        "configurations": [
            {
                "type": "bashdb",
                "request": "launch",
                "name": "Bash-Debug (select script from list of sh files)",
                "folder": "${workspaceFolder}",
                "cwd": "${fileDirname}",
                "program": "${file}",
                "args": []
            }
        ]
    }

Details

Details goes here.

xhiroga avatar Feb 08 '20 05:02 xhiroga

@xhiroga Can you explain what you did regarding global config, same error here?

tik9 avatar May 18 '21 18:05 tik9