Skip to content

Debugging in VScode Ruby DevContainer #121

@N7K4

Description

@N7K4

Your environment

  • vscode-ruby-test-adapter version: v0.9.2
  • Ruby version: 3.1.3p185
  • VS Code version: 1.77.3
  • Operating System: Win 10, WSL ubuntu
  • RSpec or Minitest version: minitest v5.18.0

Expected behavior

Debugging of test should work, and breakpoints should be reached

Actual behavior

Only "Run" test is working.

Debugging the same test is not should working "Error while debugging test: SyntaxError: Unexpected end of JSON input".

  • In my devcontainer-setup there are just default setting.
  • The commands are done gem install debase and gem install ruby-debug-ide

in VScoode settings.json -> I tryed to config (but failed, so out-commented)

// Extension Ruby Test Explorer
   "rubyTestExplorer.debuggerHost": "127.0.0.1",
   "rubyTestExplorer.debuggerPort": "1234",
   "rubyTestExplorer.debugCommand": "rdebug-ide"

Do I have to forward the port 1234, or is anything missing in my setup?

This section should include any relevant screenshots, code samples, console output, etc. The more information we have to reproduce the better!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions