Comments (28)
@mskogen @m-dwyer @jvilk-stripe @erichmusick-stripe Finally reproduced and fixes. Will release a new version ASAP
from debase.
You did it! Fixed on my machine now too @ViugiNick
from debase.
@mskogen Could you please attach an example code snippet, so I can reproduce the problem with stepping
from debase.
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.
@mskogen Thats strange, in RubyMine 2019.2 with 0.2.4 everything works fine
from debase.
@mskogen breakpoint on the first line and step over all lines
from debase.
@ViugiNick I think the issue is with VS Code and the gem. Have you tried reproducing the issue in VS Code?
from debase.
@mskogen not yet
from debase.
@mskogen With ruby 2.6.3 everything works fine at least on this sample
from debase.
@ViugiNick is this your ruby version?
ruby -v
ruby 2.6.3p62 (2019-04-16 revision 67580) [x64-mingw32]
from debase.
Also are you running Windows 10?
from debase.
@mskogen ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux]
running on ubuntu
from debase.
@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.
@mskogen Ok, I'll try to check it on Windows, but could you also test in Linux?
from debase.
@ViugiNick ill try to check it out on Linux as well
from debase.
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.
@ViugiNick any luck reproducing? This is a recurring problem for folks with @erichmusick-stripe's setup.
from debase.
@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.
@jvilk-stripe thanks for pointing this out! @erichmusick-stripe @mskogen Could you check if upgrading ruby resolves the issue?
from debase.
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.
@ViugiNick upgrading Ruby does not fix the issue
from debase.
@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.
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.
@mskogen @m-dwyer @jvilk-stripe @erichmusick-stripe 0.2.5 released!
from debase.
@mskogen @m-dwyer @jvilk-stripe @erichmusick-stripe used to remove 0.2.5 and publich 0.2.4.1 instead (fix included)
from debase.
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.
@amilano Maybe that's because of the Gemfile.lock?
from debase.
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)
- 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
- Deprecation warning: warning: $SAFE will become a normal global variable in Ruby 3.0 HOT 8
- Hash variables as string? HOT 2
- Ruby 2.7.1 compatibility HOT 4
- 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.