ruby / vscode-rdbg

VSCode Ruby rdbg Debugger
MIT License
176 stars 50 forks source link

Devcontainer: debugger disconnecting after period of time #502

Open abr-storm opened 1 month ago

abr-storm commented 1 month ago

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"
    }
  ]
}
alen-george commented 1 week ago

I have encountered the same issue uninstalling [ruby-debug-ide](https://github.com/ruby-debug/ruby-debug-ide) gem helped me resolve that issue.