Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > [ANN] Ruby Debugging Article at IBM Developerworks

Thread Tools

[ANN] Ruby Debugging Article at IBM Developerworks

pat eyler
Posts: n/a

The next article is up. ( if you don't want to register)

I'm always interested in feedback, if anyone wants to share.=20

We are often unable to tell people what they need to know, because=20
they want to know something else, and would therefore only=20
misunderstand what we said
- the Raven (George MacDonald, Lilith)

Reply With Quote
Florian Groß
Posts: n/a
pat eyler wrote:

> The next article is up. ( if you don't want to register)
> I'm always interested in feedback, if anyone wants to share.

Hm, no mention at all of ruby-breakpoint? See

Reply With Quote
Levin Alexander
Posts: n/a
T24gOS82LzA1LCBtYXRoZXcgPG1ldGFAcG9ib3guY29tPiB3cm 90ZToKCj4gVGhhdCBpcywgaWYg
PiBhYmxlIHRvIHdyaXRlIHNvbWV0aGluZyBsaWtlCj4gCj4gIC AgIHRyaWdnZXJfZGVidWdnZXIg
Z2VtcycKICByZXF1aXJlICdicmVha3BvaW50JwoKICBicmVha3 BvaW50IGlmICRERUJVRwoKcHV0
cyB5b3UgaW50byBhbiBpbnRlcmFjdGl2ZSBpcmIgc2Vzc2lvbg oKLUxldmluCg==

Reply With Quote
Caleb Clausen
Posts: n/a
Levin Alexander wrote:

> On 9/6/05, mathew <(E-Mail Removed)> wrote:
>> That is, if I have the source file open in my editor, I'd like to be
>> able to write something like
>> trigger_debugger if $DEBUG

> $ gem install ruby-breakpoint
> require 'rubygems'
> require 'breakpoint'
> breakpoint if $DEBUG
> puts you into an interactive irb session

Or, to stop in the debugger, try this:

defined? DEBUGGER__ and Process.kill("INT",0)

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[ANN] another Ruby article at developerworks pat eyler Ruby 2 08-12-2005 02:03 PM
IBM developerWorks article about Cerise Koen Vervloesem Ruby 0 02-01-2005 06:14 PM
Recommended books about Python by IBM developerWorks Bruno Lienard Python 0 10-25-2004 09:38 PM
IBM Developerworks: Learn how to write DB2 JDBC tools in Jython Neo Python 1 04-04-2004 06:39 PM
Ruby mention in IBM devworks article Phil Tomson Ruby 0 07-22-2003 10:57 PM