Giter Site home page Giter Site logo

Comments (9)

Ipecac242 avatar Ipecac242 commented on September 14, 2024

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.

os97673 avatar os97673 commented on September 14, 2024

Could you please try breakpoint-expr-writer branch and let me know if it fixes the problem or not.

from debase.

dawez avatar dawez commented on September 14, 2024

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.

os97673 avatar os97673 commented on September 14, 2024

debase is not supposed to work with byebug, why do you use it? And what are you trying to achieve?

from debase.

Ipecac242 avatar Ipecac242 commented on September 14, 2024

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.

Ipecac242 avatar Ipecac242 commented on September 14, 2024

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.

os97673 avatar os97673 commented on September 14, 2024

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

Ipecac242 avatar Ipecac242 commented on September 14, 2024

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.

hurricup avatar hurricup commented on September 14, 2024

Closing this as abandoned, feel free to provide more recent information if any.

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.