Skip to content

Devcontainer: debugger disconnecting after period of time #502

@abr-storm

Description

@abr-storm

Hi, thanks for making this extension

I'm debugging a request in my rails app by attaching to the process and placing a breakpoint inside a controller action. Once I make a request, it behaves exactly as I would expect: pausing at the breakpoint.

However if I leave the paused debug view open for 30-40 seconds it disconnects and I lose my place in the code. Is this happening because of some kind of request timeout in rails, or is there a configuration setting I need to change in rdbg?

I'm using the VScode devcontainer feature to define the dev environment.

This is my launch.json:

{
  // 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": "rdbg",
      "name": "Attach with rdbg",
      "request": "attach",
      "useBundler": true,
      "shell": "bash"
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions