Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cwd does not exist error when attempting to launch debugger #173

Open
NZnick opened this issue Nov 3, 2022 · 1 comment
Open

cwd does not exist error when attempting to launch debugger #173

NZnick opened this issue Nov 3, 2022 · 1 comment

Comments

@NZnick
Copy link

NZnick commented Nov 3, 2022

Executables

Version of bash-debug: 0.3.9

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

where bash

C:\Windows\System32\bash.exe
C:\Program Files\Git\usr\bin\bash.exe

code --version

1.73.0
8fa188b2b301d36553cbc9ce1b0a146ccb93351f
x64

Debug output

No debug output is generated

Details

When I attempt to launch the debugger I receive an error message saying Error: cwd {/mnt/c/path/to/my/workspace/folder} does not exist. But it clearly does exist because I have it open in vscode

@HasanMothaffar
Copy link

HasanMothaffar commented Dec 9, 2022

@NZnick I don't know if this helps, but maybe try adding a simple .vscode/launch.json config file?

I'm using WSL and VSCode. I installed the extension and launched the debugger (F5) but there was no output. After configuring the debug task, everything worked.

Here's a minimal config file suggestion (.vscode/launch.json):

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "bashdb",
            "request": "launch",
            "name": "Bash-Debug (simplest configuration)",
            "program": "${file}"
        }
    ]
}

I'm sorry if this does not help or is irrelevant to your problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants