我在Mac上使用Visual Studio代码,并且努力设置ruby调试器。在调试控制台中运行调试器时,没有收到任何错误。在开发人员工具中,与调试器相关的人员没有得到什么。我仅在调试控制台上收到此行。
Fast Debugger (ruby-debug-ide 0.6.1, debase 0.2.2, file filtering is supported) listens on 127.0.0.1:1234
我相信我的设置几乎成功,只需要更多帮助即可完成。
我的设置:
Ruby on Rails-(3.2.22.5)
Ruby-(2.3.8)
降级-(0.2.2)
Ruby Debug Ide-(0.6.1)
launch.json
{
"name": "Debug Local File",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rails",
"useBundler": true,
"pathToRDebugIDE": "/Users/teniauskask/.rvm/gems/ruby-2.3.8/gems/ruby-debug-ide-0.6.1/bin/rdebug-ide",
"pathToBundler": "/Users/teniauskask/.rvm/gems/ruby-2.3.8/wrappers/bundle",
"showDebuggerOutput": true,
"env": {
"PATH": "/Users/teniauskask/.rvm/gems/ruby-2.3.8/bin:/Users/teniauskask/.rvm/gems/ruby-2.3.8@global/bin:/Users/teniauskask/.rvm/rubies/ruby-2.3.8/bin:/Users/teniauskask/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/Users/teniauskask/.rvm/bin:/Users/teniauskask/.rvm/bin",
"GEM_HOME": "/Users/teniauskask/.rvm/gems/ruby-2.3.8/",
"GEM_PATH": "/Users/teniauskask/.rvm/gems/ruby-2.3.8:/Users/teniauskask/.rvm/gems/ruby-2.3.8@global",
"RUBY_VERSION": "ruby-2.3.8"
}