Comments (10)
Hi @key88sf, this is concerning... Are you using latest byebug?
from byebug.
@deivid-rodriguez Yep, I am. It seems to be something about my rails app/project -- when I use byebug in a basic rails app it works fine. Wondering if you have any thoughts about what could cause this that I could look at?
from byebug.
No... I've never seen this... I guess if you set the breakpoint on a line where you cannot possibly go deeper it works fine?
Not very confident it will help, but would you be able to try this using ruby-head or patching your current ruby with both r44535 and r45758? Just to make sure.
from byebug.
Hmm haven't tried that yet, but strangely Pry seems to work ok (e.g. doing a binding.pry
in the code). Maybe a conflict between the two?
from byebug.
There shouldn't be any conflicts with pry...
from byebug.
@key88sf Can you try to reproduce this issue against latest Byebug and latest ruby 2.1.3? Did you ever experience it again? I really think this should be now fixed.
from byebug.
I'm getting this with Ruby 2.0.0p481 and Byebug 3.1.2. I'll update to the latest and try again, but that might take a few days.
mental note for me: 961ff20cd5ce78ebea7f92a2d941ffb2f2556a6f then break app/domains/importer/data_helpers.rb instance.reload:38 then catch Exception then cont.
*** Byebug's stacksize (74) should be 73. This might be a bug in byebug or ruby's debugging API's
--> ͱ-- #0 RubyVM::DebugInspector.frame_binding()
at /Users/bronson/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller/mri2.rb:25
#1 block (2 levels) in BindingOfCaller::BindingExtensions.callers
at /Users/bronson/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller/mri2.rb:25
ͱ-- #2 Kernel.loop
at /Users/bronson/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller/mri2.rb:23
#3 block in BindingOfCaller::BindingExtensions.callers
at /Users/bronson/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller/mri2.rb:23
ͱ-- #4 #<Class:RubyVM::DebugInspector>.open
at /Users/bronson/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller/mri2.rb:21
#5 BindingOfCaller::BindingExtensions.callers
at /Users/bronson/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/binding_of_caller-0.7.2/lib/binding_of_caller/mri2.rb:21
#6 block in Exception.<class:Exception>(*args#Array)
at /Users/bronson/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/better_errors-1.1.0/lib/better_errors/core_ext/exception.rb:9
ͱ-- #7 PG::Connection.get_last_result
at /Users/bronson/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/activerecord-4.0.8/lib/active_record/connection_adapters/postgresql_adapter.rb:810
#8 ActiveRecord::ConnectionAdapters::PostgreSQLAdapter.exec_cache(sql#String, binds#Array)
at /Users/bronson/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/activerecord-4.0.8/lib/active_record/connection_adapters/postgresql_adapter.rb:810
... etc ...
#25 ActiveRecord::AttributeMethods::Dirty.reload(options#NilClass)
at /Users/bronson/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/activerecord-4.0.8/lib/active_record/attribute_methods/dirty.rb:49
#26 ActiveRecord::AutosaveAssociation.reload(options#NilClass)
at /Users/bronson/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/activerecord-4.0.8/lib/active_record/autosave_association.rb:217
#27 Importer::DataHelpers.import_row(model#Class, row#Hash)
... etc ...
#69 Rake::Application.run
at /Users/bronson/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/rake-10.3.2/lib/rake/application.rb:75
#70 <top (required)> at /Users/bronson/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/rake-10.3.2/bin/rake:33
ͱ-- #71 Kernel.load at /Users/bronson/.rbenv/versions/2.0.0-p481/bin/rake:23
#72 <main> at /Users/bronson/.rbenv/versions/2.0.0-p481/bin/rake:23
from byebug.
@bronson cool, this is an interesting one!
from byebug.
@bronson Any news?
from byebug.
Closing for lack of feedback.
from byebug.
Related Issues (20)
- byebug tends to get "stuck" in the debugger in Windows Terminal with tabs HOT 2
- Provide a way to exit the program without exiting the Rails Console
- Segmentation Fault in Ruby 3.0 Rspec HOT 5
- Only show program files in backtrace (excluding gems)
- [macOS][11.4] ERROR: Error installing byebug 11.1.3 HOT 3
- [macOS][12.0] ERROR: Error installing byebug 11.1.3 HOT 3
- Default port in byebug CLI
- Test failure with ruby 3.0.2 HOT 1
- Is it possible to make post_mortem the default behaviour?
- Byebug does not work when called in a background process group
- byebug-6 compile issue
- Exceptions when running `frame` or `backtrace` on a Sinatra application
- Arguments for `where`
- BuildError: ERROR: Failed to build gem native extension byebug 8.2.1 HOT 5
- cannot load such file -- irb (LoadError)
- Homebrew Formula error: No available formula with the name "formula". Did you mean foreman? Error: Broken pipe
- Build dependency on chandler, which is archived/unmaintained HOT 1
- Byebug error parses a comma in a string as an endinger for a line of code HOT 1
- Commands with no description HOT 2
- Byebug is not installing in mac m2 version 11.0.1 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 byebug.