<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'debugger pickaxe vs vs 186-26' | Pragmatic Forums</title>
    <link>http://fora.pragprog.com/forums/17/topics/161</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>debugger pickaxe vs vs 186-26 posted by Wes Rishel @ Sun, 09 Dec 2007 06:00:52 -0000</title>
      <description>&lt;p&gt;The first time I tried to use the debugger was in 186 and I am seeing something different than in v2 of the book on page 163. Or perhaps I am doing something wrong.&lt;/p&gt;


	&lt;p&gt;In the book it appears that when you run with the debugger option, such as this&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;ruby.exe -r debug t.rb&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;you end up with the debugger looking at the source file (e.g., t.rb).&lt;/p&gt;


	&lt;p&gt;However, when I run it I end up in some Ruby module:&lt;/p&gt;


	&lt;p&gt;ruby.exe -r debug t.rb&lt;br /&gt;C:/ruby/lib/ruby/site_ruby/1.8/ubygems.rb:10:require &amp;#8216;rubygems&amp;#8217;&lt;br /&gt;(rdb:1) l&lt;br /&gt;[5, 14] in C:/ruby/lib/ruby/site_ruby/1.8/ubygems.rb
   5  # All rights reserved.
   6  # See &lt;span class="caps"&gt;LICENSE&lt;/span&gt;.txt for permissions.
   7  #++
   8
   9&lt;br /&gt;=&amp;gt; 10  require &amp;#8216;rubygems&amp;#8217;&lt;/p&gt;


	&lt;p&gt;The work-around seems pretty simple: set a breakpoint in your own file and type C, as below.&lt;/p&gt;


	&lt;p&gt;I thought you might want to know, in order to update the book.&lt;/p&gt;


	&lt;p&gt;(rdb:1) b t.rb:3&lt;br /&gt;Set breakpoint 1 at t.rb:3&lt;br /&gt;(rdb:1) c&lt;br /&gt;Breakpoint 1, toplevel at t.rb:3&lt;/p&gt;</description>
      <pubDate>Sun, 09 Dec 2007 06:00:52 -0000</pubDate>
      <guid isPermaLink="false">fora.pragprog.com:17:161:1999</guid>
      <author>Wes Rishel</author>
      <link>http://fora.pragprog.com/forums/17/topics/161</link>
    </item>
  </channel>
</rss>
