Skip to content

DAP Couldn't connect to 127.0.0.1:54701: ECONNREFUSED #33

@kayn1

Description

@kayn1

What?

This plugin does not seem to work. It fails everytime.

DAP Couldn't connect to 127.0.0.1:54701: ECONNREFUSED

Port does not make any difference here.

Steps to reproduce:

  1. Create test file with rspec
  2. Put breakpoint somewhere
  3. Run debug current file or whatever.

Also, I can't add my own configuration so this is also an issue.

      local dap = require("dap")
      require("dap-ruby").setup()
      dap.configurations.ruby = {
        {
          type = "ruby",
          name = "debug rspec line",
          bundle = "bundle",
          request = "attach",
          command = "rspec",
          script = "${file}",
          port = 38698,
          server = "127.0.0.1",
          options = {
            source_filetype = "ruby",
          },
          localfs = true,
          waiting = 1000,
          current_line = true,
        },
        {
          type = "ruby",
          name = "debug rspec file",
          bundle = "bundle",
          request = "attach",
          command = "rspec",
          script = "${file}",
          port = 38698,
          server = "127.0.0.1",
          options = {
            source_filetype = "ruby",
          },
          localfs = true,
          waiting = 1000,
        },

I see that some other people reported this.

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