ruby-debug

How can I get ruby-debug-ide to work?

假装没事ソ 提交于 2019-12-03 09:55:55
I can't get my ruby-debug-ide to work properly. I have a basic rails app, and I would like to debug in RubyMine. Before I even start RubyMine, I need to enable rdebug-ide in my vagrant VM. When I navigate to my project directory, I have read online I need to enter the following command: rdebug-ide --port 1236 --dispatcher-port 26166 --host 0.0.0.0 - bin/rails s -b 0.0.0.0 However when I run this command, I get this message: I have also tried a modified version of the above command: (an extra dash) rdebug-ide --port 1236 --dispatcher-port 26166 --host 0.0.0.0 -- bin/rails s -b 0.0.0.0 And I get

How to stop the Rails debugger for the current request

霸气de小男生 提交于 2019-12-02 20:48:16
Say I have a loop in my code that calls the rails debugger a few times def show animals = ['dog', 'cat', 'owl', 'tiger'] for animal in animals debugger # do something else end Assuming I started my server with the --debugger option, when this page is viewed, the debugger is going to stop for every run of the loop. I can type cont every time it stops so the request continues, but that's tedious, especially if we're not talking about it showing up 4 times as in this example, but 400. Is there a way to let the debugger continue without pausing at each point of the loop? My currently workaround is

Rubymine 6.0.2, unable to debug

天涯浪子 提交于 2019-12-01 12:17:34
问题 On my new OSX Mavericks install, I wanted to give Rubymine a try and just can't get the debugger working (although i managed to get it working on Windows 7 with IntelliJ and the ruby plugin). Here's what I did (XCode and commandline tools already installed): homebrew install ruby gem update --system Then I installed Rubymine and opened some of my projects. Upon starting the debugger, rubymine tries to install dependencies: Failed to Install Gems. Following gems were not installed:

debug rails 3.1.1 application

a 夏天 提交于 2019-12-01 11:23:48
I'm try to add a debugger to my rails 3.1.1 application which uses ruby 1.9.2. I have added the following to my gemfile: gem 'ruby-debug19', :require => 'ruby-debug' and I get the following error: /.rvm/gems/ruby-1.9.2-p290@rails31/gems/ruby-debug19-0.11.6/cli/ruby-debug/interface.rb:55:in `block (2 levels) in initialize': uninitialized constant Debugger::LocalInterface::Readline (NameError) by the way i have the following: $ ruby -v ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] $ rails -v Rails 3.1.1 $ rvm -v rvm 1.8.6 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm

debug rails 3.1.1 application

坚强是说给别人听的谎言 提交于 2019-12-01 09:09:21
问题 I'm try to add a debugger to my rails 3.1.1 application which uses ruby 1.9.2. I have added the following to my gemfile: gem 'ruby-debug19', :require => 'ruby-debug' and I get the following error: /.rvm/gems/ruby-1.9.2-p290@rails31/gems/ruby-debug19-0.11.6/cli/ruby-debug/interface.rb:55:in `block (2 levels) in initialize': uninitialized constant Debugger::LocalInterface::Readline (NameError) by the way i have the following: $ ruby -v ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] $

Aptana 3 ruby debugger - Exception in DebugThread loop: undefined method `is_binary_data?'

左心房为你撑大大i 提交于 2019-11-30 04:25:48
I'm trying to debug simple ruby file in Aptana 3. class HelloWorld def initialize() end def greet() puts "hello world" end end h=HelloWorld.new h.greet breakpoint is set to h.greet after I started debug, debugger starts, but when it tries to initialize ruby class, debugger disconnect with message Fast Debugger (ruby-debug-ide 0.4.9) listens on :54749 Exception in DebugThread loop: undefined method `is_binary_data?' for "#<HelloWorld:0x85915fc>":String when I set breakpoint to h=HelloWorld.new debugger starts, but after I stepped into initialize() constructor, it disconnects with previous

Is there any way to tell which gems and plugins are loaded at runtime for a Rails process?

纵然是瞬间 提交于 2019-11-29 22:19:14
Is there any command either in debugger or ruby-debug to get a list of all gems and/or plugins loaded in memory for a Rails process? I understand only the ' require ' gems are loaded but I would like to quickly see what got loaded during runtime. This should get you everything loaded through rubygems: Gem.loaded_specs.keys I don't know of a universal way to see which rails plugins are loaded, you can look at the source for Rails::Initializer (pre 3.0) & figure out what your version of rails is doing. Hopefully you know which plugins should be loading & can confirm that from the console when

ruby-debug won't install / build native extensions

无人久伴 提交于 2019-11-29 06:48:27
问题 I have searched high and low for a solution. I have both linecache19 and ruby_core_source installed. Neither of these commands will work: gem install ruby-debug19 gem install ruby-debug19 -- --with-ruby-include=/Users/benjohnson/.rvm/src/ruby-1.9.1-p378 Here is the error I keep getting: Building native extensions. This could take a while... ERROR: Error installing ruby-debug19: ERROR: Failed to build gem native extension. /Users/benjohnson/.rvm/rubies/ruby-1.9.1-p378/bin/ruby extconf.rb

Thin with SSL support and ruby-debug

♀尐吖头ヾ 提交于 2019-11-29 04:23:41
Does anyone know of a way to run the ruby debugger and SSL at the same time with Thin? I've been using Thin successfully with Rails 3.0.10. I start it using rails server --debugger , and I can debug my code. Recently, I have also needed to add SSL support to my application, and I'd like to be able to test it locally with a self-signed certificate. Unfortunately, I have not found a way to start Thin with SSL support when using rails server . I can successfully start Thin with SSL support by using: thin start --ssl --ssl-verify --ssl-key-file ssllocal/server.key --ssl-cert-file ssllocal/server

Cannot install ruby-debug gem on Windows

試著忘記壹切 提交于 2019-11-29 04:21:05
I'm having trouble installing the Ruby-Debug Gem on windows. What does this error mean? How can I fix this? Thanks C:\Users\Steve>gem install ruby-debug Building native extensions. This could take a while... ERROR: Error installing ruby-debug: ERROR: Failed to build gem native extension. C:/Ruby19/bin/ruby.exe extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir -