Comments (1)
I have the same problem.
Debug works when I use thor
on my app, but when I want to use it on my app (rails server
)
it freezes.
It works also when I create a new app with the same Ruby/Rails versions.
My app is built originally some years ago and I've constantly "upgraded" it to the new Ruby & Rails versions.
It seems that there's some conflict either one or more gems and
the 'debug' gem or something wrong in my configs (application.rb / development.rb).
Some details:
- Ruby version: 3.3.3
- Rails: 7.1.3.4
- Rdbg version: 1.9.2
- OS: Fedora 38
I attach here my Gemfile, application.rb & development.rb.
Gemfile:
source 'https://rubygems.org'
ruby "3.3.3"
gem 'rails', '~> 7.1'
gem 'puma'
group :development, :test, :staging do
gem "debug", ">= 1.0.0", platforms: %i[ mri mingw x64_mingw ]
end
gem 'pg'
gem 'strong_password', platforms: :mri
gem 'cancancan', '~> 3.0'
gem 'devise'
gem 'simple_form'
gem 'devise-encryptable'
gem 'activemodel-serializers-xml'
gem 'globalize', '~> 6.0'
gem 'redcarpet'
gem 'country_select'
gem 'bootstrap-sass', '~> 3'
gem 'font-awesome-rails'
gem 'sass-rails', '~> 5.0'
gem 'sassc-rails', '~> 2.1'
gem 'coffee-rails', '~> 5'
gem 'jquery-rails'
gem 'turbolinks', '~> 5.2'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
gem 'redis', '~> 4.0', require: false
gem 'haml-rails'
gem 'kaminari'
gem 'bcrypt', '~> 3.1.7'
gem 'friendly_id', '~> 5.1'
gem 'exception_notification'
gem 'geocoder'
gem 'pry-rails'
gem 'listen'
gem 'dalli'
gem 'net-smtp'
gem "sprockets-rails"
gem 'psych', '~> 5.0'
gem 'bootsnap', '>= 1.4.2', require: false
group :development, :test, :staging do
gem 'letter_opener_web', '~> 2.0'
gem 'launchy'
gem 'i18n-tasks', '~> 0.9'
gem 'rack-mini-profiler', require: false
end
group :development do
gem 'web-console'
gem 'spring'
gem 'spring-watcher-listen' # , '~> 2.0.0'
end
group :production, :staging do
gem "sd_notify"
end
group :test do
gem 'sqlite3', '~> 1.7'
gem "rspec-rails"
gem 'cucumber-rails', :require => false
gem 'database_cleaner'
gem 'capybara', ">= 2.15"
gem 'pickle'
gem 'capybara-screenshot'
gem 'aruba'
gem 'selenium-webdriver'
gem 'webdrivers'
gem 'factory_bot_rails'
gem 'chronic'
gem 'timecop'
gem 'rails-controller-testing'
gem 'stripe-ruby-mock', '~> 3.0.1', :require => 'stripe_mock'
gem 'simplecov', require: false
end
gem 'sitemap_generator'
gem 'mini_magick'
gem 'carrierwave'
gem 'sidekiq', '~> 6.0'
gem 'record_tag_helper', '~> 1.0'
gem 'browser'
gem 'mini_portile2'
gem 'stripe'
gem 'sinatra', require: false
gem 'slim'
gem 'json', '>= 2.3.0'
gem 'image_processing', '~> 1.2'
# gem 'net-smtp'
My config file w/o comments.
application.rb
:
require_relative "boot"
require "rails/all"
require_relative '../lib/middleware/ping'
Bundler.require(*Rails.groups)
module MyApp
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 6.1
config.active_support.cache_format_version = 7.0
config.autoload_lib(ignore: %w(assets tasks))
config.eager_load_paths << Rails.root.join("lib/**")
config.autoload_paths += Dir["#{config.root}/lib/**/"]
config.add_autoload_paths_to_load_path = true
config.time_zone = 'Europe/Paris'
config.i18n.available_locales = [:fr, :en, :it, :fa]
config.i18n.enforce_available_locales = true
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '*.{rb,yml}').to_s]
config.i18n.default_locale = :fr
config.encoding = "utf-8"
config.active_support.escape_html_entities_in_json = true
config.active_record.timestamped_migrations = false
config.active_record.schema_format = :ruby
config.assets.enabled = true
config.generators do |g|
g.assets false
g.test_framework :rpec
g.fixture_replacement :factory_bot
end
config.assets.precompile += ['application.js', 'standard.css', ... ]
config.assets.version = '1.0'
config.assets.initialize_on_precompile = false
config.exceptions_app = self.routes
config.active_job.queue_name_delimiter = "_"
config.action_mailer.deliver_later_queue_name = :mailers
config.action_mailer.default charset: "utf-8"
config.action_controller.per_form_csrf_tokens = true
config.action_controller.forgery_protection_origin_check = true
config.ssl_options = { hsts: { subdomains: true } }
config.action_mailer.delivery_job = "ActionMailer::MailDeliveryJob"
end
end
And my development.rb
:
Rails.application.configure do
config.annotations.register_directories('features')
config.annotations.register_extensions('feature') { |tag| /#\s*(#{tag}):?\s*(.*)$/ }
config.hosts += %w(example.com www.example.com)
config.enable_reloading = true
config.eager_load = false
config.consider_all_requests_local = true
config.server_timing = true
if Rails.root.join("tmp/caching-dev.txt").exist?
config.action_controller.perform_caching = true
config.action_controller.enable_fragment_cache_logging = true
config.cache_store = :file_store, 'tmp/cache'
config.public_file_server.headers = {
"Cache-Control" => "public, max-age=#{2.days.to_i}"
}
else
config.action_controller.perform_caching = false
config.cache_store = :null_store
end
config.active_storage.service = :local
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_caching = false
config.active_support.deprecation = :log
config.active_support.disallowed_deprecation = :raise
config.active_support.disallowed_deprecation_warnings = []
config.active_record.migration_error = :page_load
config.active_record.verbose_query_logs = true
config.active_job.queue_adapter = :sidekiq
config.action_mailer.delivery_method = :letter_opener
config.action_mailer.perform_deliveries = true
config.action_mailer.default_url_options = { host: "https://tripa.com" }
config.action_dispatch.best_standards_support = :builtin
config.assets.compress = false
config.assets.digest = false
config.assets.debug = false
config.assets.quiet = true
config.middleware.use ExceptionNotification::Rack,
email: {
sender_address: '[email protected]',
exception_recipients: '[email protected]'
}
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
config.log_level = :debug
config.sass.inline_source_maps = true
config.sass.line_comments = false
end
from debug.
Related Issues (20)
- binding.b doesn't stop code on second controller request and above
- History not available
- Setting the irb_console configuration true has no effect HOT 1
- <enter> does not repeat last command in irb_console mode.
- Proposal: reverse continue
- Feat/Bug: Set the value of `_` (underscore) to the value of the last ruby expression HOT 3
- Slow print (STDOUT) of large objects
- Question: Could not load source 'Fastfile': not found, while debugging a Fastlane lane from VSCODE
- Remove usage of deprecated constant IRB::InputCompletor
- `!!!` to fast forward breakpoints like in pry HOT 5
- Large data output HOT 1
- Add a shorter alias for the whereami command HOT 1
- Could not find valid gem HOT 1
- Cut a new release for the Rails stdin bug HOT 2
- Keystrokes between `debugger` sessions seem to persist HOT 4
- after_fork_parent method waits for all child processes to stop HOT 2
- Having to specify bundle exec twice HOT 2
- `list -` doesn't work with IRB console HOT 2
- Segmentation Fault Crash HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from debug.