rogalmic / vscode-bash-debug

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

windows 10 Error: cwd (/mnt/d/***/****/) does not exists #151

Closed Chamiduz closed 3 years ago

Chamiduz commented 3 years ago

I am getting "Error: cwd (/mnt/d/***/***/***/***) does not exists" while trying to debug using Bash Debug extension with vscode

image

https://github.com/microsoft/vscode/issues/118618

Actual file path : D:\***\***\***\*** VS Code Version : 1.54.1 user setup OS Version : windows 10 pro 1909

Steps to Reproduce:

  1. Install vscode
  2. Install Remote-WSL extension 0.54.2
  3. Install Bash Debug extension 0.3.9
  4. Create launch.json
<img width="418" alt="vscodeerror" src="https://user-images.githubusercontent.com/37238842/110613819-b3c59200-81b7-11eb-8116-0628f4ecf521.PNG">

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "bashdb",
            "request": "launch",
            "name": "Bash simple",
            "cwd": "${workspaceFolder}",
            "program": "${file}",
            "terminalKind": "integrated"  
        }
    ]
}
  1. Start debugging
jeremyMonatte commented 3 years ago

Is there a solution so ? Having the same issue

zagadelha commented 3 years ago

This not works for me too. Unfortunately.

rogalmic commented 2 years ago

Please try setting both wsl and program in launch.json manually with full path in wsl:

            "cwd": "/mnt/d/some/path", //path to workspace
            "program": "/mnt/d/some/path/script_to_debug.sh", //path to file