vscode-bash-debug
vscode-bash-debug copied to clipboard
Cannot chmod +x internal bashdb copy
Executables
Version of bash-debug:
0.3.7
code --version:
1.42.1
c47d83b293181d9be64f27ff093689e8e7aed054
x64
bash -c 'uname -a; for P in bash bashdb cat mkfifo pkill; do echo ---; which -a $P; command $P --version; done':
/bin/bash
GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu)
bash: bashdb: command not found
/bin/cat
cat (GNU coreutils) 8.28
/usr/bin/mkfifo
mkfifo (GNU coreutils) 8.28
/usr/bin/pkill
pkill from procps-ng 3.3.12
{
"version": "0.2.0",
"configurations": [
{
"type": "bashdb",
"request": "launch",
"name": "Bash-Debug (simplest configuration)",
"program": "${file}",
"showDebugOutput": true,
"terminalKind": "integrated"
}
]
}
Details
I am trying to use this on WSL. My WSL is mounting C: drive to root /
cat /etc/wsl.conf
[automount]
root = /
options = "metadata,umask=22,fmask=11"
I add configuration and then try to run it. I get a windows error message from Visual Studio Code with following text:
Error: Cannot chmod +x internal bashdb copy.
chmod: cannot access '/mnt/c/Users/name/.vscode/extensions/rogalmic.bash-debug-0.3.7/bashdb_dir/bashdb': No such file or directory
As I said, the problem here is that it assumes /mnt/c/ which is not the case.
Is there a way to override this somewhere?
我这里提示这个消息,我使用下面的方法解决了: 扩展查看文件夹不要放在C盘,因为windows 中,C盘是系统盘,可能是权限导致的这个提示信息:Cannot chmod +x internal bashdb copy!
我的解决办法是: 把扩展文件夹移到非系统盘,项目移到非系统盘; 就可以运行了;
我还有一个额外的操作:设置了WSL 的默认密码,可不能不存在影响!
I have the same problem
There is no way to override this currently, I will try to create such parameter for the next version.
Maybe this is not ideal for you but running VS Code as Administrator solves the issue for me.
Has there been a solution to this?
Error: Cannot chmod +x internal bashdb copy.
chmod: cannot access '/mnt/c/Users/name/.vscode/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb':
Operation not permitted
Using WSL 2 an VSCode 1.52.1
Running as Administrator has no effect for me,
I'm also having the same problem, but I don't have any wsl.conf, and I do can see this path '/mnt/c/Users/name/.vscode/extensions/rogalmic.bash-debug-0.3.9/bashdb_dir/bashdb' exists.
And solutions ??
I have the same problem.
In my case, it was to do with the default WSL distro that was set to docker-desktop.
wsl --list --all
Windows Subsystem for Linux Distributions:
docker-desktop (Default)
Ubuntu-20.04
docker-desktop-data
Change the default distro to Ubuntu for example wsl --setdefault Ubuntu-20.04
@janisBerz Your suggestion fixed the issue for me. Thanks!