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

can't attached my ruby on rails project in vs code #175

Open barak109 opened 4 years ago

barak109 commented 4 years ago

I want to debug in Visual Studio Code my ruby on rails project, with attach debugging, but my Visual Studio Code debugger doesn't stop at breakpoints.

I use macOS My ruby version:2.4.4 My rails version:5.0.1 My Visual Studio Code version :1.35.1

I did install ruby extension for Visual Studio Code gem install debase gem install ruby-debug-ide

and my configuration in launch.json is { "name": "Debug Attach", "type": "Ruby", "request": "attach", "cwd": "${workspaceRoot}", "remoteWorkspaceRoot": "bin/rails", "remoteHost": "127.0.0.1", "remotePort": "3000", "showDebuggerOutput": true }

in debug console i get "Debugger error: Client: Error: write EPIPE"

Thank you :)

rockorequin commented 4 years ago

It might not be related, but are you using symlinks to specify the workspace or source files? My ruby-debug-ide/debase combination on my Linux doesn't stop at breakpoints if I use symlinks, but it works fine otherwise.

barak109 commented 4 years ago

It might not be related, but are you using symlinks to specify the workspace or source files? My ruby-debug-ide/debase combination on my Linux doesn't stop at breakpoints if I use symlinks, but it works fine otherwise.

Thank you for your replay, but we don't use it.

ViugiNick commented 4 years ago

@barak109 I think it's better to create an issue in VSCode ruby plugin repo