Browse Source

rails debugger

main
pvincent 2 years ago
parent
commit
b42e91bd5f
  1. 16
      .vscode/launch.json
  2. 5
      Gemfile
  3. 16
      Gemfile.lock
  4. 2
      Procfile.dev

16
.vscode/launch.json

@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for rdebug-ide",
"type": "Ruby",
"request": "attach",
"remoteHost": "127.0.0.1",
"remotePort": "1234",
"remoteWorkspaceRoot": "${workspaceRoot}"
}
]
}

5
Gemfile

@ -59,7 +59,6 @@ gem 'devise'
group :development, :test do group :development, :test do
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem 'debug', platforms: %i[mri mingw x64_mingw]
end end
group :development do group :development do
@ -75,6 +74,10 @@ group :development do
gem 'rubocop' gem 'rubocop'
gem 'rubocop-rails' gem 'rubocop-rails'
gem 'solargraph' gem 'solargraph'
# gem 'debug'
gem 'debase', '>= 0.2.5.beta2'
gem 'ruby-debug-ide'
end end
group :test do group :test do

16
Gemfile.lock

@ -89,9 +89,9 @@ GEM
concurrent-ruby (1.2.2) concurrent-ruby (1.2.2)
crass (1.0.6) crass (1.0.6)
date (3.3.3) date (3.3.3)
debug (1.8.0)
irb (>= 1.5.0)
reline (>= 0.3.1)
debase (0.2.5.beta2)
debase-ruby_core_source (>= 0.10.12)
debase-ruby_core_source (3.2.1)
devise (4.9.2) devise (4.9.2)
bcrypt (~> 3.0) bcrypt (~> 3.0)
orm_adapter (~> 0.1) orm_adapter (~> 0.1)
@ -109,9 +109,6 @@ GEM
importmap-rails (1.1.6) importmap-rails (1.1.6)
actionpack (>= 6.0.0) actionpack (>= 6.0.0)
railties (>= 6.0.0) railties (>= 6.0.0)
io-console (0.6.0)
irb (1.6.4)
reline (>= 0.3.0)
jaro_winkler (1.5.6) jaro_winkler (1.5.6)
jbuilder (2.11.5) jbuilder (2.11.5)
actionview (>= 5.0.0) actionview (>= 5.0.0)
@ -204,8 +201,6 @@ GEM
ffi (~> 1.0) ffi (~> 1.0)
rbs (2.8.4) rbs (2.8.4)
regexp_parser (2.8.0) regexp_parser (2.8.0)
reline (0.3.4)
io-console (~> 0.5)
responders (3.1.0) responders (3.1.0)
actionpack (>= 5.2) actionpack (>= 5.2)
railties (>= 5.2) railties (>= 5.2)
@ -228,6 +223,8 @@ GEM
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
rack (>= 1.1) rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0) rubocop (>= 1.33.0, < 2.0)
ruby-debug-ide (0.7.3)
rake (>= 0.8.1)
ruby-progressbar (1.13.0) ruby-progressbar (1.13.0)
rubyzip (2.3.2) rubyzip (2.3.2)
selenium-webdriver (4.9.1) selenium-webdriver (4.9.1)
@ -301,7 +298,7 @@ DEPENDENCIES
amazing_print amazing_print
bootsnap bootsnap
capybara capybara
debug
debase (>= 0.2.5.beta2)
devise devise
importmap-rails importmap-rails
jbuilder jbuilder
@ -311,6 +308,7 @@ DEPENDENCIES
rails_semantic_logger rails_semantic_logger
rubocop rubocop
rubocop-rails rubocop-rails
ruby-debug-ide
selenium-webdriver selenium-webdriver
solargraph solargraph
sprockets-rails sprockets-rails

2
Procfile.dev

@ -1,2 +1,2 @@
web: bin/rails server -p 3000
web: rdebug-ide --port 1234 --skip_wait_for_start -- bin/rails s -p 3000
css: bin/rails tailwindcss:watch css: bin/rails tailwindcss:watch
Loading…
Cancel
Save