Invoke irb during execution of code

how do i invoke the irb during the execution of my code.
for eg
require "watir"
   ie = Watir::IE.start( url)
invoke irb so that i can inspect the ie and use the ie object
interactively.

Appreciate any help.
seede

ruby-breakpoint, while currently unmaintained, does (did?) just that.

http://rubyforge.org/projects/ruby-breakpoint

martin

···

On Tue, Jun 3, 2008 at 10:04 AM, Junkone <junkone1@gmail.com> wrote:

how do i invoke the irb during the execution of my code.
for eg
require "watir"
  ie = Watir::IE.start( url)
invoke irb so that i can inspect the ie and use the ie object
interactively.

Appreciate any help.
seede

Junkone wrote:

how do i invoke the irb during the execution of my code.

IRB is very useful for that. One way to do it:

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/244139

···

--
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

Have you seen/tried Live_Console?
http://rubyforge.org/frs/?group_id=4682&release_id=15655
I'm trying it out on a project.
I'm having some issues, but that's par 4 me.

aTb
MarkT

···

On Wed, Jun 4, 2008 at 3:04 AM, Junkone <junkone1@gmail.com> wrote:

how do i invoke the irb during the execution of my code.
for eg
require "watir"
  ie = Watir::IE.start( url)
invoke irb so that i can inspect the ie and use the ie object
interactively.

Appreciate any help.
seede

thanks for trying to help. But i am lost with this code. do i have to
call this code from my ruby code or should i call my ruby code from
this code. any additional details would be very very useful.
Regards
Seede

···

On Jun 3, 5:45 pm, Joel VanderWerf <vj...@path.berkeley.edu> wrote:

Junkone wrote:
> how do i invoke the irb during the execution of my code.

IRB is very useful for that. One way to do it:

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/244139

--
vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

First, run "gem install -r ruby-debug"

I have the following programmed into a hotkey in my text editor:

require 'ruby-debug'
Debugger.start
debugger

...so whenever I need a breakpoint I hit the key and rerun my program.

Les

···

On 6/4/08, Junkone <junkone1@gmail.com> wrote:

On Jun 3, 5:45 pm, Joel VanderWerf <vj...@path.berkeley.edu> wrote:

Junkone wrote:
> how do i invoke the irb during the execution of my code.

IRB is very useful for that. One way to do it:

http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/244139

--
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

thanks for trying to help. But i am lost with this code. do i have to
call this code from my ruby code or should i call my ruby code from
this code. any additional details would be very very useful.
Regards
Seede

--
[we need your code-fu] : www.zadic.co.za

Junkone wrote:

thanks for trying to help. But i am lost with this code. do i have to
call this code from my ruby code or should i call my ruby code from
this code. any additional details would be very very useful.

Copy the module..end and class..end part into your code. Then look at the stuff at the bottom. The simplest use is:

IRB.start_session(x)

where x is the object that will be "self" in the irb session. If you want the user to be able to look at some local variables as well, use the form with "binding" as the first argument.

···

--
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

What I say.. is why don´t any of you take my job offer seriously.... :frowning: sniff.

LAET. Yazmín M. Cárdenas Rubalcaba

Technical Recruiter

Phone 01 800 087 47 87 Ext 257

Local phone 1368 1745 Ext 257

Av. Mariano Otero 3225 Col. Verde Valle

C.P. 44540 Guadalajara, Jal. México

www.pounceconsulting.com

e-mail. yazmin.cardenas@pounceconsulting.com

···

-----Original Message-----
From: Joel VanderWerf [mailto:vjoel@path.berkeley.edu]
Sent: Wednesday, June 04, 2008 6:10 PM
To: ruby-talk ML
Subject: Re: invoke irb during execution of code

Junkone wrote:

thanks for trying to help. But i am lost with this code. do i have to
call this code from my ruby code or should i call my ruby code from
this code. any additional details would be very very useful.

Copy the module..end and class..end part into your code. Then look at
the stuff at the bottom. The simplest use is:

IRB.start_session(x)

where x is the object that will be "self" in the irb session. If you
want the user to be able to look at some local variables as well, use
the form with "binding" as the first argument.

--
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.24.6/1480 - Release Date: 6/3/2008 7:00 AM

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.24.6/1480 - Release Date: 6/3/2008 7:00 AM