From: Rodrigo Rosenfeld Rosas Date: 2013-02-27T05:55:28+09:00 Subject: [ruby-core:52957] Re: Any documentation about debugging in Ruby 2.0.0 This is a multi-part message in MIME format. --------------090508000601010302020201 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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. --------------090508000601010302020201 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit 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.
--------------090508000601010302020201--