Skip to content

Commit

Permalink
Move from rdebug-ide/byebug to debugger.gem
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandro-fazzi committed Jan 5, 2022
1 parent a1b1d83 commit f273f94
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 46 deletions.
69 changes: 25 additions & 44 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,72 +2,53 @@
"version": "0.2.0",
"configurations": [
{
"name": "Debug Local File",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/main.rb"
"type": "rdbg",
"name": "Attach to remote rdbg",
"request": "attach"
},
{
"name": "Listen for rdebug-ide",
"type": "Ruby",
"request": "attach",
"cwd": "${workspaceRoot}",
"remoteHost": "127.0.0.1",
"remotePort": "1234",
"remoteWorkspaceRoot": "${workspaceRoot}"
"type": "rdbg",
"name": "Debug current file",
"request": "launch",
"script": "${file}",
"askParameters": true
},
{
"name": "Rails server",
"name": "Debug Local File",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rails",
"args": [
"server"
]
"program": "${workspaceRoot}/main.rb"
},
{
"name": "RSpec - all",
"type": "Ruby",
"type": "rdbg",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rspec",
"args": [
"-I",
"${workspaceRoot}"
]
"command": "bundle exec",
"script": "rspec",
"askParameters": false,
"args": []
},
{
"name": "RSpec - active spec file only",
"type": "Ruby",
"type": "rdbg",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rspec",
"args": [
"-I",
"${workspaceRoot}",
"${file}"
]
"command": "bundle exec rspec",
"script": "${file}",
"askParameters": false,
"args": []
},
{
"name": "RSpec - active test only",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rspec",
"args": [
"-I",
"${workspaceRoot}",
"${file}:${lineNumber}"
]
},
{
"name": "Cucumber",
"type": "Ruby",
"type": "rdbg",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/cucumber"
"command": "bundle exec rspec",
"script": "${file}:${lineNumber}",
"askParameters": false,
"args": []
}
]
}
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)

require 'tempfile'
require 'pry-byebug'
require 'debug'

require 'simplecov'
SimpleCov.start do
Expand Down
2 changes: 1 addition & 1 deletion wordmove.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = '>= 3.1.0'

spec.add_development_dependency 'bundler', '~> 2.3.3'
spec.add_development_dependency 'pry-byebug', '~> 3.1'
spec.add_development_dependency 'debug', '~> 1.4.0'
spec.add_development_dependency 'rake', '~> 13.0.1'
spec.add_development_dependency 'rspec', '~> 3.9'
spec.add_development_dependency 'rubocop', '~> 1.24.0'
Expand Down

0 comments on commit f273f94

Please sign in to comment.