Skip to content

Add cwd setting #11

@ndan

Description

@ndan

I have multiple rails projects in my working folder, but I'm getting [Bundler::GemfileNotFound] Could not locate Gemfile when I'm trying to run debugger.

Example of my project structure:

/my_project
  /frontend
  /api
    /app
    /config
    ...
    Gemfile

Debugger settings:

{
  "type": "ruby-debug",
  "request": "launch",
  "name": "Rails: api",
  "program": "${workspaceFolder}/api/bin/rails",
  "programArgs": [
    "s",
  ],
  "useBundler": false
}

It seems cwd setting might solve the problem by pointing debugger to the right directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions