Skip to content

Instantly share code, notes, and snippets.

@vaiorabbit
Last active February 17, 2022 07:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save vaiorabbit/def486d7d0f791df1abd01ee2daa739f to your computer and use it in GitHub Desktop.
Save vaiorabbit/def486d7d0f791df1abd01ee2daa739f to your computer and use it in GitHub Desktop.
VSCode settings for ruby debugging
{
// IntelliSense を使用して利用可能な属性を学べます。
// 既存の属性の説明をホバーして表示します。
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug Local File",
"type": "Ruby",
"request": "launch",
"program": "${workspaceRoot}/sample/test_glfw_opengl2.rb"
"cwd": "${workspaceRoot}/sample",
"showDebuggerOutput": true,
"env": {
"PATH": "/Users/foo/.rvm/gems/default/bin:/Users/foo/.rvm/rubies/default/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/foo/.rvm/bin",
"GEM_HOME": "/Users/foo/.rvm/gems/default",
"GEM_PATH": "/Users/foo/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0",
},
}
]
}
// 既定の設定を上書きするには、このファイル内に設定を挿入します
{
"ruby.interpreter.commandPath": "/Users/foo/.rvm/rubies/default/bin/ruby",
"ruby.rctComplete.commandPath": "/Users/foo/.rvm/gems/default/bin/rct-complete",
"ruby.lint": {
"reek": false,
"rubocop": false,
"ruby": false, //Runs ruby -wc
"fasterer": false,
"debride": false,
"ruby-lint": false
},
"ruby.useLanguageServer": true,
"ruby.locate": {
"exclude": "{**/@(test|spec|tmp|.*),**/@(test|spec|tmp|.*)/**,**/*_spec.rb}",
"include": "**/*.rb"
},
"window.zoomLevel": 0,
"go.formatTool": "goimports",
"go.useLanguageServer": true,
"workbench.editor.showTabs": true,
"update.mode": "manual",
"terminal.integrated.automationShell.osx": "/bin/zsh",
"terminal.integrated.shell.osx": "/bin/zsh",
"ruby.intellisense": "rubyLocate",
"ruby.codeCompletion": "rcodetools",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment