Giter Site home page Giter Site logo

Comments (28)

ViugiNick avatar ViugiNick commented on August 10, 2024 1

@mskogen @m-dwyer @jvilk-stripe @erichmusick-stripe Finally reproduced and fixes. Will release a new version ASAP

from debase.

mskogen avatar mskogen commented on August 10, 2024 1

You did it! Fixed on my machine now too @ViugiNick

from debase.

ViugiNick avatar ViugiNick commented on August 10, 2024

@mskogen Could you please attach an example code snippet, so I can reproduce the problem with stepping

from debase.

mskogen avatar mskogen commented on August 10, 2024

It isn't anything crazy, this is just a test script I was using to try and step line-by-line. This is how I was troubleshooting the debugging:

puts 4
puts 7
puts 9
puts 3
puts 9
l = 7
puts "hello"
h = 9
puts h + l

from debase.

ViugiNick avatar ViugiNick commented on August 10, 2024

@mskogen Thats strange, in RubyMine 2019.2 with 0.2.4 everything works fine

from debase.

ViugiNick avatar ViugiNick commented on August 10, 2024

@mskogen breakpoint on the first line and step over all lines

from debase.

mskogen avatar mskogen commented on August 10, 2024

@ViugiNick I think the issue is with VS Code and the gem. Have you tried reproducing the issue in VS Code?

from debase.

ViugiNick avatar ViugiNick commented on August 10, 2024

@mskogen not yet

from debase.

ViugiNick avatar ViugiNick commented on August 10, 2024

@mskogen With ruby 2.6.3 everything works fine at least on this sample

from debase.

mskogen avatar mskogen commented on August 10, 2024

@ViugiNick is this your ruby version?

ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [x64-mingw32]

from debase.

mskogen avatar mskogen commented on August 10, 2024

Also are you running Windows 10?

from debase.

ViugiNick avatar ViugiNick commented on August 10, 2024

@mskogen ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
running on ubuntu

from debase.

mskogen avatar mskogen commented on August 10, 2024

@ViugiNick I wonder if this issue is only apparent on the Windows 10 ruby/VS Code configuration? Do you have an easy way to test that? If not I can try to to test on a linux VM as well and see if I can reproduce the same issue.

from debase.

ViugiNick avatar ViugiNick commented on August 10, 2024

@mskogen Ok, I'll try to check it on Windows, but could you also test in Linux?

from debase.

mskogen avatar mskogen commented on August 10, 2024

@ViugiNick ill try to check it out on Linux as well

from debase.

erichmusick-stripe avatar erichmusick-stripe commented on August 10, 2024

I can repro the step behavior issue under VS Code 1.36.1 on OSX 10.14.5 using @mskogen 's sample program.

ruby 2.4.5p335 (2018-10-18 revision 65137) [x86_64-darwin18]
ruby-debug-ide 0.6.1
debase 0.2.4

Step behavior works properly when using debase 0.2.2 and 0.2.3.

Not only does stepping fail in 0.2.4, but if I set two breakpoints, hit the first, and hit Continue, the program skips the second breakpoint and then exits.

from debase.

jvilk-stripe avatar jvilk-stripe commented on August 10, 2024

@ViugiNick any luck reproducing? This is a recurring problem for folks with @erichmusick-stripe's setup.

from debase.

jvilk-stripe avatar jvilk-stripe commented on August 10, 2024

@mskogen With Ruby 2.6.4 and Debase 0.2.4, this problem is gone.

There was a bug in Ruby 2.6 where Ruby was not emitting a trace point for some return statements.

See deivid-rodriguez/byebug#550 (comment) for further context.

from debase.

ViugiNick avatar ViugiNick commented on August 10, 2024

@jvilk-stripe thanks for pointing this out! @erichmusick-stripe @mskogen Could you check if upgrading ruby resolves the issue?

from debase.

m-dwyer avatar m-dwyer commented on August 10, 2024

I've replicated it with @mskogen's sample script above.
Arch Linux, kernel 5.2.11

$ code --version
1.37.1
$ ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
$ gem list | grep -E '(debase|ruby-debug-ide)'
debase (0.2.3)
debase-ruby_core_source (0.10.5)
ruby-debug-ide (0.7.0)

Breakpoints work on the puts, but when trying to step over/into the assignments, the script runs until the end. debase 0.2.4 allows me to hit the first breakpoint, but subsequent breakpoints fail.

With ruby 2.6.4 and debase 0.2.4, the same issue occurs -- I can hit the first breakpoint, but that is all.

EDIT: downgrading to debase 0.2.3beta5 also resolves the issue for me.

from debase.

mskogen avatar mskogen commented on August 10, 2024

@ViugiNick upgrading Ruby does not fix the issue

from debase.

ViugiNick avatar ViugiNick commented on August 10, 2024

@mskogen @m-dwyer @jvilk-stripe I still can't reproduce it, but I added some more logging there: could you please uninstall 0.2.4 debase and install the version from this branch https://github.com/ViugiNick/debase/tree/logging

And attach lines with something like context->... here

from debase.

mskogen avatar mskogen commented on August 10, 2024

When you try to replicate the issue what version of VisualStudio, Ruby, and debase are you using? Also are you trying to replicate the issue on Windows? @ViugiNick

from debase.

ViugiNick avatar ViugiNick commented on August 10, 2024

@mskogen @m-dwyer @jvilk-stripe @erichmusick-stripe 0.2.5 released!

from debase.

ViugiNick avatar ViugiNick commented on August 10, 2024

@mskogen @m-dwyer @jvilk-stripe @erichmusick-stripe used to remove 0.2.5 and publich 0.2.4.1 instead (fix included)

from debase.

amilano avatar amilano commented on August 10, 2024

Hi everybody... 0.2.5 was removed, but bundler keeps trying to fetch that version instead of 0.2.4.1 is there anything else to do other than manually restricting debase to use a gem lower than 0.2.5?

Even after removing it from the Gemfile, bundling and adding it back bundler keeps looking for 0.2.5

from debase.

ViugiNick avatar ViugiNick commented on August 10, 2024

@amilano Maybe that's because of the Gemfile.lock?

from debase.

amilano avatar amilano commented on August 10, 2024

Well, I actually removed the gem from Gemfile and bundled in order to delete it from Gemfile.lock... added it again (gem 'debase', '~> 0.2.2') and bundled. Bundler got again 0.2.5 into Gemfile.lock.

For now I restricted the gem to use versions lower to 0.2.5 like this: gem 'debase', '~> 0.2.2', '< 0.2.5'. But I was wondering if there's something else to do, or if it's only me having this issue.

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.