ruby-debug/ruby-debug-ide

VSCode (Invalid variable attributes) and RubyMine (Collecting data...) stuck in Variables section

Opened this issue · 4 comments

Hello,

I'm using VSCode 1.51.1 and RubyMine 2020.1.4, ruby-debug-ide-0.7.2 and debase-0.2.5.beta1.

This is my VSCode launch config for reference:

{
  "name": "rdebug-ide",
  "type": "Ruby",
  "request": "attach",
  "remoteHost": "127.0.0.1",
  "remotePort": "1234",
  "remoteWorkspaceRoot": "${workspaceRoot}",
  "cwd": "${workspaceRoot}"
},

I start the Rails server using the command below:

rdebug-ide -- bin/rails s -b <ip_address_here>

When I hit a breakpoint, all I see in Variables section of VSCode is this:

Screen Shot 2020-11-15 at 23 51 00

Similarly, RubyMine is stuck like this (it even freezes the Rails server using RubyMine):

Screen Shot 2020-11-16 at 00 06 11

Same variables can be added to the Watch section of VSCode without any problems.

Also, a custom fork of ruby-debug-ide that RubyMine uses internally (experimental mode) works just fine, even with VSCode.

Thank you.

These are only symptoms. I'm not sure it's possible to do something without additional information, like code to reproduce or additional errors.

Interestingly, when I right click on the variable in VSCode and copy value, this is what I get:

undefined local variable or method 'attributes' for <class name here>