Giter Site home page Giter Site logo

Comments (15)

ViugiNick avatar ViugiNick commented on September 14, 2024

@brodock Do you debug with RubyMine?

from debase.

brodock avatar brodock commented on September 14, 2024

@ViugiNick yes

from debase.

ViugiNick avatar ViugiNick commented on September 14, 2024

@brodock Can you try the last version of debase and ruby-debug-ide?

from debase.

mkasberg avatar mkasberg commented on September 14, 2024

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.

ViugiNick avatar ViugiNick commented on September 14, 2024

@mkasberg Could you please try RubyMine 2019.3 Beta?

from debase.

mkasberg avatar mkasberg commented on September 14, 2024

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:

  1. Comment out bootsnap
  2. Debug my tests (breakpoints work because bootsnap is commented)
  3. Uncomment bootsnap
  4. 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.

ViugiNick avatar ViugiNick commented on September 14, 2024

@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.

mkasberg avatar mkasberg commented on September 14, 2024

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.

mkasberg avatar mkasberg commented on September 14, 2024

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.

mkasberg avatar mkasberg commented on September 14, 2024

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.

ViugiNick avatar ViugiNick commented on September 14, 2024

@mkasberg Could you e-mail it to me, please? or attach it here

from debase.

mkasberg avatar mkasberg commented on September 14, 2024

Sure! mkasberg-breakpoints.zip

Steps to reproduce are in the README in the zipped folder.

from debase.

ViugiNick avatar ViugiNick commented on September 14, 2024

@mkasberg Are you ok with upgrading bootsnap gem?

from debase.

mkasberg avatar mkasberg commented on September 14, 2024

Yep, already did it! Thanks for the help!

from debase.

hurricup avatar hurricup commented on September 14, 2024

Closing as abandoned. Feel free to provide most recent information after checking most recent debase version.

from debase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.