Skip to content

Commit

Permalink
debug用にためしたgemを追加。ただ、まだ思うように動かず
Browse files Browse the repository at this point in the history
  • Loading branch information
1021ky committed Nov 12, 2024
1 parent 6102b7c commit c69cfe0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,21 @@
"name": "Attach with rdbg",
"request": "attach"
},
{
"type": "rdbg",
"name": "Debug Rspec with current file",
"rdbgPath": "bundle exec rdbg",
"request": "launch",
"command": "rspec",
"script": "${file}",
"args": [
"-p",
"1357"
],
"askParameters": true,
"env": {
"DATABASE_URL": "postgresql://postgres:postgres@localhost:5432/test"
}
}
]
}
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,17 @@ group :development do
gem 'bigdecimal' # for rubocop
gem 'brakeman'
gem 'bundler-audit'
gem 'debase', '0.2.5.beta2' # https://github.com/ruby-debug/debase/issues/108
gem 'debug'
gem 'factory_bot'
gem 'listen', '~> 3.3'
gem 'mutex_m' # for rubocop
gem 'rack-mini-profiler', '~> 2.0'
gem 'rdbg' # bundle binstub debugでbin/rdbgが作られる
gem 'rspec-core'
gem 'rubocop'
gem 'rubocop-rails'
gem 'ruby-debug-ide'
gem 'ruby-lsp'
gem 'spring'
gem 'stringio'
Expand All @@ -45,7 +48,6 @@ end
group :test do
gem 'capybara', '>= 3.26'
gem 'factory_bot_rails'
gem 'rspec-core'
gem 'rspec-rails'
gem 'selenium-webdriver', '>= 4.0.0.rc1'
gem 'webdrivers'
Expand Down
7 changes: 7 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ GEM
concurrent-ruby (1.3.4)
crass (1.0.6)
date (3.4.0)
debase (0.2.5.beta2)
debase-ruby_core_source (>= 0.10.12)
debase-ruby_core_source (3.3.6)
debug (1.9.2)
irb (~> 1.10)
reline (>= 0.3.8)
Expand Down Expand Up @@ -270,6 +273,8 @@ GEM
rack (>= 1.1)
rubocop (>= 1.52.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
ruby-debug-ide (0.7.3)
rake (>= 0.8.1)
ruby-lsp (0.21.3)
language_server-protocol (~> 3.17.0)
prism (>= 1.2, < 2.0)
Expand Down Expand Up @@ -353,6 +358,7 @@ DEPENDENCIES
bundler-audit
byebug
capybara (>= 3.26)
debase (= 0.2.5.beta2)
debug
dotenv-rails
factory_bot
Expand All @@ -370,6 +376,7 @@ DEPENDENCIES
rspec-rails
rubocop
rubocop-rails
ruby-debug-ide
ruby-lsp
sass-rails (>= 6)
selenium-webdriver (>= 4.0.0.rc1)
Expand Down

0 comments on commit c69cfe0

Please sign in to comment.