ruby-debug / ruby-debug-ide

An interface which glues ruby-debug to IDEs like Eclipse (RDT), NetBeans and RubyMine.
https://www.jetbrains.com/ruby/features/ruby_debugger.html
Other
370 stars 83 forks source link

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

Open ttemrahcelik opened 3 years ago

ttemrahcelik commented 3 years ago

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.

hurricup commented 3 years ago

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

ttemrahcelik commented 3 years ago

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>

jameskieley commented 2 years ago

+1

abdul-shajin commented 5 months ago

+1