Comments (15)
@brodock Do you debug with RubyMine?
from debase.
@ViugiNick yes
from debase.
@brodock Can you try the last version of debase
and ruby-debug-ide
?
from debase.
I commented in RubyMine YouTrack as well, but perhaps this is the right GitHub issue to continue discussion... (Landed here from Shopify/bootsnap#168)
I'm experiencing not-working breakpoints in RubyMine with:
- ruby 2.5.5
- ruby-debug-ide 0.8.0.beta11
- debase 0.3.0.beta11
- bootsnap 1.3.0
- rails 5.2.3
The workaround of commenting out bootsnap makes the breakpoints behave correctly.
Is there a specific version of something that I should try upgrading to and see if this is fixed? Also, is this the right issue on GitHub to track the state of this problem? Happy to try to provide other info if it would help!
from debase.
@mkasberg Could you please try RubyMine 2019.3 Beta?
from debase.
Thanks for the reply!
I tested the behavior I'm observing with the following versions:
- RubyMine 2019.3 Beta (193.5233.24)
- ruby 2.5.5
- ruby-debug-ide 0.8.0.beta19,
- debase 0.3.0.beta19
- bootsnap 1.3.0
- rails 5.2.3
I did not observe any behavior difference between these versions and RubyMine 2019.2. That is to say, Bootsnap still appears to prevent my breakpopints from working in the most recent version of RubyMine 2019.3 Beta.
While testing this, however, I did observe some interesting behavior in both versions - if I:
- Comment out bootsnap
- Debug my tests (breakpoints work because bootsnap is commented)
- Uncomment bootsnap
- Debug again
Breakpoints continue to work even with bootsnap uncommented. (I haven't confirmed how long this will last...) (Perhaps something to do with how/when the cache was built?)
I'm happy to try other things if there's anything that might help resolve this! Right now, I comment out bootsnap whenever I need my breakpoints to work, and it would be nice not to have to do so.
from debase.
@mkasberg Ok, is it possible to share some example, so I can reproduce the problem, maybe you place breakpoints in some specific locations?
from debase.
I don't have an example I can share that's immediately available, but I will work on a minimal example to reproduce the problem. (Maybe I'll even figure something out in the process.) I'll get back to you in a few days if I can get something that's small and reproducible.
from debase.
The process of constructing a minimal example actually helped me track down the source of the problem. As it turns out, the solution was very simple. Upgrading to Bootsnap 1.4.5 solved the problem for me due to Shopify/bootsnap#257. I was under the impression I didn't need to do this on Ruby 2.5.5 due to this comment, but as it turns out the upgrade to Bootsnap 1.4.5 was still necessary, even on Ruby 2.5.5. With the Bootsnap upgrade, no other changes were necessary and my breakpoints are working.
Anyway, thanks for being my rubber duck! Hopefully my comment will help someone else who comes across this...
from debase.
Also, I do now have a fairly minimal example I could share if that would be useful for any of your testing purposes...
from debase.
@mkasberg Could you e-mail it to me, please? or attach it here
from debase.
Sure! mkasberg-breakpoints.zip
Steps to reproduce are in the README in the zipped folder.
from debase.
@mkasberg Are you ok with upgrading bootsnap gem?
from debase.
Yep, already did it! Thanks for the help!
from debase.
Closing as abandoned. Feel free to provide most recent information after checking most recent debase version.
from debase.
Related Issues (20)
- migrate tests to GHA HOT 1
- Debase gem not installing on MacOS Ventura and M1 HOT 2
- Debase failing to install on vscode Jekyll container HOT 1
- Failed to install in ruby docker image (vm_insnhelper.h missing) HOT 2
- Symbol not found: _rb_cObject on M1 Mac HOT 1
- Failed to install debase on Windows 10: is the new version for ruby-3.2.2 not releasing yet? HOT 3
- Can't install on mac os arm Mac OS Sonoma 14.4 HOT 9
- INTERNAL ERROR!!! ArgumentError: wrong number of arguments (given 2, expected 1)
- Error while installing debase-0.2.5.beta2 HOT 1
- Won't install with ruby 2.6.6 on macOS Big Sur HOT 12
- ERROR: Failed to build gem native extension - Mac(Catalina)+RVM(ruby 2.5.8) HOT 5
- 0.2.4.1 and 0.2.5.beta Fail to build on macOS Catalina 10.15.7 HOT 15
- Ruby 3.0.0 compatibilty HOT 10
- Missing tags for 0.2.4 and 0.2.4.1 release HOT 1
- Ruby 3.0.2 compatibilty HOT 11
- Ruby 3.1 compatibility issue HOT 5
- Debugger stops only on 1st breakpoint inside a Fiber block and ignores all subsequent ones
- debase failing to install on Mac HOT 1
- Failed to install Debase HOT 7
- Debbuger steps into internal kernel in ruby 3.x
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 debase.