Skip to content

Commit

Permalink
Replace ruby-debug-ide with debug gem (#7040)
Browse files Browse the repository at this point in the history
* Replace ruby-debug-ide with debug gem

* Add vscode-rdbg extension

* Add rdbg extension and update vscode launch.json to use the extension.
  • Loading branch information
dwc0011 authored Apr 11, 2023
1 parent f87962f commit 394a44f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/core-dev/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
"LoranKloeze.ruby-rubocop-revived",
"groksrc.ruby",
"hoovercj.ruby-linter",
"miguel-savignano.ruby-symbols"
"miguel-savignano.ruby-symbols",
"koichisasada.vscode-rdbg"
]
}
7 changes: 3 additions & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"rebornix.ruby",
Expand All @@ -10,9 +9,9 @@
"groksrc.ruby",
"hoovercj.ruby-linter",
"miguel-savignano.ruby-symbols",
"ms-vscode-remote.remote-containers"
"ms-vscode-remote.remote-containers",
"koichisasada.vscode-rdbg"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": [
]
"unwantedRecommendations": []
}
17 changes: 12 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"configurations": [
{
"name": "Debug dry run",
"type": "Ruby",
"type": "rdbg",
"request": "launch",
"program": "${workspaceRoot}/bin/dry-run.rb",
"script": "${workspaceRoot}/bin/dry-run.rb",
"cwd": "${workspaceRoot}",
"useBundler": true,
"args": [
Expand All @@ -18,12 +18,19 @@
},
{
"name": "Debug Tests",
"type": "Ruby",
"type": "rdbg",
"request": "launch",
"program": "${workspaceRoot}/omnibus/.bundle/bin/rspec",
"script": "${workspaceRoot}/omnibus/.bundle/bin/rspec",
"cwd": "${workspaceRoot}/${input:ecosystem}",
"useBundler": true,
"args": ["${input:test_path}"],
"args": [
"${input:test_path}"
],
},
{
"type": "rdbg",
"name": "Attach with rdbg",
"request": "attach"
},
{
"type": "node",
Expand Down
1 change: 0 additions & 1 deletion omnibus/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ gemspec path: "../terraform"

# Visual Studio Code integration
gem "reek", group: :development
gem "ruby-debug-ide", group: :development
gem "solargraph", group: :development

gemspec

0 comments on commit 394a44f

Please sign in to comment.