Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ttemrahcelik opened this issue Nov 16, 2020 · 4 comments

Comments

@ttemrahcelik
Copy link

ttemrahcelik commented Nov 16, 2020

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.

@ttemrahcelik ttemrahcelik changed the title VSCode (Invalid variable attributes) and RubyMine (Collecting data...) have problems in Variables section VSCode (Invalid variable attributes) and RubyMine (Collecting data...) stuck in Variables section Nov 16, 2020
@hurricup
Copy link
Contributor

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
Copy link
Author

ttemrahcelik commented Nov 16, 2020

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
Copy link

+1

1 similar comment
@abdul-shajin
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants