Comments (9)
I tried with Debase 0.1.0 today, but I get the same error. Does anyone have any suggestions? I really miss using conditional breakpoints.
from debase.
Could you please try breakpoint-expr-writer branch and let me know if it fixes the problem or not.
from debase.
It seems that I have the same problem. I tried with different combinations of byebug / debase.
gem 'byebug' , github: 'deivid-rodriguez/byebug', branch: 'master'
gem 'debase' , :github => 'denofevil/debase', :branch => 'master'
With this combination the page is does not finish loading and it is stop in loading mode.
Using instead
byebug (3.5.1 7c8c0db)
debase (0.1.2)
The page is loaded but there no stopping at breakpoint. There is a error message appearing on top: "No interface loaded"
I am using ruby 2.2.0p0 (2014-12-25 revision 49005) [i686-linux]
Anything else that I can try ?
from debase.
debase is not supposed to work with byebug, why do you use it? And what are you trying to achieve?
from debase.
Hi os97673,
Sorry for the delay in checking your breakpoint-expr-writer branch fix for this. I tried it today and get a different error now:
SEVERE [org.rubyforge.debugcommons.Util]: Error Output:
C:/Dev/Ruby200/lib/ruby/2.0.0/rubygems/specification.rb:627: warning: warning: Invalid argument:C:/Users/mswither/.gem/ruby/2.0.0:C:/Dev/Ruby200/lib/ruby/gems/2.0.0/specifications: Invalid argument
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/bin/rdebug-ide:24: warning: shadowing outer local variable - opts
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/xml_printer.rb:281: warning: assigned but unused variable - e
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/xml_printer.rb:297: warning: mismatched indentations at 'end' with 'if' at 293
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:34: warning: shadowing outer local variable - input
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:135: warning: assigned but unused variable - context
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/condition.rb:15: warning: shadowing outer local variable - largest
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/enable.rb:6: warning: shadowing outer local variable - largest
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/jump.rb:70: warning: mismatched indentations at 'end' with 'def' at 62
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/pause.rb:30: warning: mismatched indentations at 'end' with 'def' at 26
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/set_type.rb:44: warning: mismatched indentations at 'end' with 'def' at 38
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:102: warning: instance variable @control_thread not initialized
Fast Debugger (ruby-debug-ide 0.4.22, debase 0.1.3.pre1) listens on 127.0.0.1:57718
1216: Exception in DebugThread loop: wrong number of arguments (1 for 0)
Backtrace:
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/condition.rb:26:in `expr='
from: C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/condition.rb:26:in `block in execute'
from: C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/condition.rb:24:in `each'
from: C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/condition.rb:24:in `execute'
from: C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:90:in `block in process_commands'
from: C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:87:in `catch'
from: C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:87:in `process_commands'
from: C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:122:in `block in start_control'
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing of: C:\Repo\UserClass took: 285 ms (New or modified files: 0, Deleted files: 0) [Adding listeners took: 3 ms]
INFO [org.netbeans.api.extexecution.ExecutionService]
org.rubyforge.debugcommons.RubyDebuggerException: Trying to send a command [start] to non-started or finished proxy (debuggee: RubyDebugTarget@66110490[baseDir: C:\Repo\3D-Git\3D\Basic\Render, debuggedFile: C:\Repo\3D-Git\3D\Basic\Render\MsaaBasic.gsf, port: 57718], output:
Error Output:
C:/Dev/Ruby200/lib/ruby/2.0.0/rubygems/specification.rb:627: warning: warning: Invalid argument:C:/Users/mswither/.gem/ruby/2.0.0:C:/Dev/Ruby200/lib/ruby/gems/2.0.0/specifications: Invalid argument
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/bin/rdebug-ide:24: warning: shadowing outer local variable - opts
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/xml_printer.rb:281: warning: assigned but unused variable - e
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/xml_printer.rb:297: warning: mismatched indentations at 'end' with 'if' at 293
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:34: warning: shadowing outer local variable - input
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:135: warning: assigned but unused variable - context
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/condition.rb:15: warning: shadowing outer local variable - largest
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/enable.rb:6: warning: shadowing outer local variable - largest
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/jump.rb:70: warning: mismatched indentations at 'end' with 'def' at 62
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/pause.rb:30: warning: mismatched indentations at 'end' with 'def' at 26
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/set_type.rb:44: warning: mismatched indentations at 'end' with 'def' at 38
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:102: warning: instance variable @control_thread not initialized
Fast Debugger (ruby-debug-ide 0.4.22, debase 0.1.3.pre1) listens on 127.0.0.1:57718
1216: Exception in DebugThread loop: wrong number of arguments (1 for 0)
Backtrace:
C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/condition.rb:26:in `expr='
from: C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/condition.rb:26:in `block in execute'
from: C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/condition.rb:24:in `each'
from: C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/commands/condition.rb:24:in `execute'
from: C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:90:in `block in process_commands'
from: C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:87:in `catch'
from: C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide/ide_processor.rb:87:in `process_commands'
from: C:/Dev/Ruby200/lib/ruby/gems/2.0.0/gems/ruby-debug-ide-0.4.22/lib/ruby-debug-ide.rb:122:in `block in start_control'
at org.rubyforge.debugcommons.RubyDebuggerProxy.sendCommand(RubyDebuggerProxy.java:335)
at org.rubyforge.debugcommons.RubyDebuggerProxy.attachToRubyDebug(RubyDebuggerProxy.java:164)
at org.rubyforge.debugcommons.RubyDebuggerProxy.attach(RubyDebuggerProxy.java:124)
at org.netbeans.modules.ruby.debugger.RubyDebugger.debug(RubyDebugger.java:143)
Caused: java.lang.RuntimeException
at org.netbeans.modules.ruby.debugger.RubyDebugger.debug(RubyDebugger.java:153)
at org.netbeans.modules.ruby.platform.execution.RubyProcessCreator.call(RubyProcessCreator.java:114)
at org.netbeans.modules.ruby.platform.execution.RubyProcessCreator.call(RubyProcessCreator.java:60)
[catch] at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:258)
at org.netbeans.api.extexecution.ExecutionService$3.call(ExecutionService.java:234)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
from debase.
I tried a simple fix for the error I'm getting now by changing
rb_define_method(cBreakpoint, "expr=", Breakpoint_set_expr, 0);
to
rb_define_method(cBreakpoint, "expr=", Breakpoint_set_expr, 1);
It got past the arguments error, but it seems to ignore the condition and breaks even when the condition is false.
from debase.
@Ipecac242 it looks like you need to learn me how to use the IDE of your choice so I could fix all such problems without asking you to test every my change.
What IDE are you using, is there any documentation on how to use it do debug ruby script?
from debase.
Thanks for your help on this. I'm currently using Netbeans 8.0.1. You can get the ruby plugins for Netbeans here: http://plugins.netbeans.org/plugin/38549
There is also some info on using Ruby in Netbeans here: http://wiki.netbeans.org/Ruby
from debase.
Closing this as abandoned, feel free to provide more recent information if any.
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.