From: Rodrigo Rosenfeld Rosas Date: 2013-03-14T22:48:00+09:00 Subject: [ruby-core:53407] Re: Any documentation about debugging in Ruby 2.0.0 I'd just like to let you know that everything seems to be fixed now and debugger2 from that repository has worked great in the few experiments I've tried here. Just use a Gemfile like this: gem 'debugger2', git: 'debugger2', require: 'debugger' And write some test code like this: require 'debugger' p 1 debugger p2 Run it with "bundle exec ruby test.rb" Great job, Koichi! Also, thanks Zach for your help! Cheers, Rodrigo. Em 13-03-2013 15:22, Rodrigo Rosenfeld Rosas escreveu: > Thank you very much, Koichi, but I couldn't get it to work yet: > > https://github.com/ko1/debugger2/issues/1 > > Any hints are appreciated :) > > Thanks, > Rodrigo. > > Em 13-03-2013 07:50, SASADA Koichi escreveu: >> I rewrite a debugger for Ruby 2.0. >> >> >> Several features are lacked. >> But I want to collect feedback. >> >> Thanks, >> Koichi >> >> >> (2013/02/27 5:55), Rodrigo Rosenfeld Rosas wrote: >>> Em 26-02-2013 17:23, SASADA Koichi escreveu: >>>> (2013/02/27 4:19), Rodrigo Rosenfeld Rosas wrote: >>>>> Unfortunately I'm too stupid to understand how I use this to debug my >>>>> applications... How do I set a breakpoint for instance? >>>> I'm so sorry I completely misunderstood your question. >>>> (how to make a debugger on 2.0.0, i misunderstood) >>>> >>>> >>>> [ruby-core:52885] check out Charlie's comment (RubyMine). >>> I did. I do have a valid (recent) license both for RubyMine and >>> IntelliJ >>> IDEA, but I just can't remember the last time I used any of those. I'm >>> too used to Vim to switch :P But at least I know that I can sort to >>> RubyMine if I have to debug some application. I don't currently have to >>> debug anything but as I was upgrading my project I was trying to >>> understand if there was any gem that would replace 'debugger' in my >>> Gemfile... Sorry for not being clearer about this before. >>> >>>> And debug.rb (in lib) will help. >>> I tried that a few days ago but I couldn't find any documentations >>> about >>> it at that time. Now I think I could find it: >>> >>> http://www.ruby-doc.org/stdlib-2.0/libdoc/debug/rdoc/DEBUGGER__.html >>> >>> So my mistake is that I just required 'debug' in the beginning of the >>> file and couldn't find out how to list the source or add a breakpoint. >>> But now that I saw the documentation above it seems I have to "require >>> 'debug'" where I want the breakpoint to be, right? :) Okay, better than >>> nothing :) >>> >>>> We introduced some debugger APIs (to make debugger) and I'm not sure >>>> they are used (except RubyMine). I'll try to make one. Sorry for >>>> inconvenience. >>> No worries. I really appreciate your efforts on that :) Thank you >>> very much! >>> >>> Cheers, >>> Rodrigo. >> > >