Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > why does debugger 'n' seem to run lines TWICE?

Reply
Thread Tools

why does debugger 'n' seem to run lines TWICE?

 
 
Sam Roberts
Guest
Posts: n/a
 
      01-31-2005

I see this often, but not always, and I don't understand.

Is it that it shows me the line once for the function call (==) and another
time for the conditional?

Here is example:

$ ruby18 -r debug mdns.rb _ftp _http
Debug.rb
Emacs support available.

mdns.rb:3:$: << File.dirname($0)
(rdb:1) b 66
Set breakpoint 1 at mdns.rb:66
(rdb:1) c
Breakpoint 1, toplevel at mdns.rb:66
mdns.rb:66: argv0 = Name.create(n)
(rdb:1) display argv0
1: argv0 =
(rdb:1) n
mdns.rb:68: unless argv0.absolute?
1: argv0 = _ftp
(rdb:1) n
mdns.rb:68: unless argv0.absolute?
1: argv0 = _ftp
(rdb:1)
n
mdns.rb:69: if argv0.to_s[0] == ?_
1: argv0 = _ftp
(rdb:1)
n
mdns.rb:69: if argv0.to_s[0] == ?_
1: argv0 = _ftp
(rdb:1)


$ ruby18 --version
ruby 1.8.2 (2005-01-29) [powerpc-darwin6.8]


Thanks,
Sam



 
Reply With Quote
 
 
 
Reply

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
Need Help getting a debugger going for IE - any free debugger aflat362 Javascript 7 12-07-2006 10:51 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
Neither IE-Debugger or Mozilla/Venkman debugger can step through dynamically added code? Robert Oschler Javascript 1 09-05-2005 07:17 AM
Can't seem to get debugger to work tfs ASP .Net 1 06-28-2004 09:49 PM
Button Column added at run time does not seem to trigger SelectIndexChanged Event. Jim Mitchell ASP .Net Datagrid Control 1 08-16-2003 10:16 PM



Advertisments