<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - rails debug hangs, 1st time user - Comments</title>
 <link>http://community.activestate.com/forum-topic/rails-debug-hangs-1st-tim</link>
 <description>Comments for &quot;rails debug hangs, 1st time user&quot;</description>
 <language>en</language>
<item>
 <title>Looks like an &#039;end&#039; is missing</title>
 <link>http://community.activestate.com/forum-topic/rails-debug-hangs-1st-tim#comment-2657</link>
 <description>&lt;p&gt;An easy way to find out for sure is to load&lt;br /&gt;
C:\Program Files\ActiveState Komodo IDE 4.1\lib\...&lt;br /&gt;
   support\dbgp\rubylib/rdbgp/command.rb&lt;br /&gt;
into Komodo and make sure each method is folded&lt;br /&gt;
correctly.  If there&#039;s an end missing, then&lt;br /&gt;
there will be a fold block that starts at a &#039;def&#039;,&lt;br /&gt;
but runs past the method&#039;s &#039;end&#039;.&lt;/p&gt;
</description>
 <pubDate>Mon, 20 Aug 2007 01:19:15 +0100</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 2657 at http://community.activestate.com</guid>
</item>
<item>
 <title>rails debug hangs, 1st time user</title>
 <link>http://community.activestate.com/forum-topic/rails-debug-hangs-1st-tim#comment-2631</link>
 <description>&lt;p&gt;I just and went and added the command.rd update as I was experiencing the same problem. Now I get a different error, which is the following:&lt;/p&gt;
&lt;p&gt;C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\dbgp\rubylib/rdbgp/proce&lt;br /&gt;
ssor.rb:6:in `require&#039;: C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\&lt;br /&gt;
dbgp\rubylib/rdbgp/command.rb:84: syntax error, unexpected $end, expecting kEND&lt;br /&gt;
(SyntaxError)&lt;br /&gt;
        from C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\dbgp\rubyli&lt;br /&gt;
b/rdbgp/processor.rb:6&lt;br /&gt;
        from C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\dbgp\rubyli&lt;br /&gt;
b/rdbgp/loader.rb:28:in `require&#039;&lt;br /&gt;
        from C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\dbgp\rubyli&lt;br /&gt;
b/rdbgp/loader.rb:28&lt;br /&gt;
        from C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\dbgp\rubyli&lt;br /&gt;
b/rdbgp.rb:111:in `require&#039;&lt;br /&gt;
        from C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\dbgp\rubyli&lt;br /&gt;
b/rdbgp.rb:111:in `get_going&#039;&lt;br /&gt;
        from C:\Program Files\ActiveState Komodo IDE 4.1\lib\support\dbgp\rubyli&lt;br /&gt;
b/rdbgp.rb:125&lt;/p&gt;
&lt;p&gt;Any ideas to fix this? I am running 186.25 of Ruby and 4.1.1.279677 of the IDE.&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
</description>
 <pubDate>Thu, 16 Aug 2007 21:41:21 +0100</pubDate>
 <dc:creator>campbellgunn</dc:creator>
 <guid isPermaLink="false">comment 2631 at http://community.activestate.com</guid>
</item>
<item>
 <title>awesome, I added that line</title>
 <link>http://community.activestate.com/forum-topic/rails-debug-hangs-1st-tim#comment-2289</link>
 <description>&lt;p&gt;awesome, I added that line of code and it works now, thanks much...&lt;/p&gt;
</description>
 <pubDate>Fri, 13 Jul 2007 22:07:38 +0100</pubDate>
 <dc:creator>aktxyz</dc:creator>
 <guid isPermaLink="false">comment 2289 at http://community.activestate.com</guid>
</item>
<item>
 <title>Plenty of questions...</title>
 <link>http://community.activestate.com/forum-topic/rails-debug-hangs-1st-tim#comment-2288</link>
 <description>&lt;p&gt;Are you loading script/server into Komodo, and starting the debugger that&lt;br /&gt;
way?&lt;/p&gt;
&lt;p&gt;Or did you load the project into a Komodo Ruby-on-Rails project template&lt;br /&gt;
(do this only with Komodo 4.1.1 (or more recent), not 4.1.0), and double-click&lt;br /&gt;
the Run|Debugger icon?&lt;/p&gt;
&lt;p&gt;It sounds like you&#039;re using the project.  If you&#039;re on Windows, there is&lt;br /&gt;
a bug in version 4.1.0 that was fixed in 4.1.1, but it sounds like you&#039;ve&lt;br /&gt;
run into it:&lt;/p&gt;
&lt;p&gt;Find the file /lib/support/dbgp/rubylib/rdbgp/command.rb&lt;br /&gt;
and verify that the load_dbgp_commands function looks like this:&lt;/p&gt;
&lt;div class=&quot;geshi-block&quot;&gt;
&lt;div class=&quot;geshifilter ruby&quot; style=&quot;font-family: monospace;&quot;&gt;&lt;span style=&quot;color:#9966CC; font-weight:bold;&quot;&gt;def&lt;/span&gt; load_dbgp_commands&lt;br /&gt;
&amp;nbsp; dir = &lt;span style=&quot;color:#CC00FF; font-weight:bold;&quot;&gt;File&lt;/span&gt;.&lt;span style=&quot;color:#9900CC;&quot;&gt;dirname&lt;/span&gt;&lt;span style=&quot;color:#006600; font-weight:bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color:#0000FF; font-weight:bold;&quot;&gt;__FILE__&lt;/span&gt;&lt;span style=&quot;color:#006600; font-weight:bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; dir.&lt;span style=&quot;color:#CC0066; font-weight:bold;&quot;&gt;gsub&lt;/span&gt;!&lt;span style=&quot;color:#006600; font-weight:bold;&quot;&gt;&amp;#40;&lt;/span&gt;/\\/, &lt;span style=&quot;color:#996600;&quot;&gt;&#039;/&#039;&lt;/span&gt;&lt;span style=&quot;color:#006600; font-weight:bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color:#9966CC; font-weight:bold;&quot;&gt;if&lt;/span&gt; RUBY_PLATFORM&lt;span style=&quot;color:#006600; font-weight:bold;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color:#996600;&quot;&gt;&amp;quot;-mswin&amp;quot;&lt;/span&gt;&lt;span style=&quot;color:#006600; font-weight:bold;&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span style=&quot;color:#008000; font-style:italic;&quot;&gt;# Allow for 64-bit, i686&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &lt;span style=&quot;color:#CC00FF; font-weight:bold;&quot;&gt;Dir&lt;/span&gt;&lt;span style=&quot;color:#006600; font-weight:bold;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color:#CC00FF; font-weight:bold;&quot;&gt;File&lt;/span&gt;.&lt;span style=&quot;color:#9900CC;&quot;&gt;join&lt;/span&gt;&lt;span style=&quot;color:#006600; font-weight:bold;&quot;&gt;&amp;#40;&lt;/span&gt;dir, &lt;span style=&quot;color:#996600;&quot;&gt;&#039;commands&#039;&lt;/span&gt;, &lt;span style=&quot;color:#996600;&quot;&gt;&#039;*.rb&#039;&lt;/span&gt;&lt;span style=&quot;color:#006600; font-weight:bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color:#006600; font-weight:bold;&quot;&gt;&amp;#93;&lt;/span&gt;.&lt;span style=&quot;color:#9900CC;&quot;&gt;each&lt;/span&gt; &lt;span style=&quot;color:#9966CC; font-weight:bold;&quot;&gt;do&lt;/span&gt; |file|&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;color:#CC0066; font-weight:bold;&quot;&gt;require&lt;/span&gt; file&lt;br /&gt;
&amp;nbsp; &lt;span style=&quot;color:#9966CC; font-weight:bold;&quot;&gt;end&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color:#9966CC; font-weight:bold;&quot;&gt;end&lt;/span&gt;&lt;/div&gt;
&lt;pre class=&quot;geshi-plain&quot;&gt;def load_dbgp_commands
  dir = File.dirname(__FILE__)
  dir.gsub!(/\\/, &#039;/&#039;) if RUBY_PLATFORM[&amp;quot;-mswin&amp;quot;] # Allow for 64-bit, i686
  Dir[File.join(dir, &#039;commands&#039;, &#039;*.rb&#039;)].each do |file|
    require file
  end
end&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Komodo 4.1.0 didn&#039;t have the line that changed backslashes to forward&lt;br /&gt;
slashes, and this broke with Ruby 1.8.6&lt;/p&gt;
&lt;p&gt;It would help if you could provide some specific info, as I&#039;ve had to guess&lt;br /&gt;
at all of them here:&lt;/p&gt;
&lt;p&gt;- the platform and version you&#039;re running Komodo on&lt;br /&gt;
- which version of Komodo&lt;br /&gt;
- which version of Ruby&lt;/p&gt;
</description>
 <pubDate>Fri, 13 Jul 2007 20:47:14 +0100</pubDate>
 <dc:creator>ericp</dc:creator>
 <guid isPermaLink="false">comment 2288 at http://community.activestate.com</guid>
</item>
<item>
 <title>rails debug hangs, 1st time user</title>
 <link>http://community.activestate.com/forum-topic/rails-debug-hangs-1st-tim</link>
 <description>&lt;p&gt;Ok, so I wanted to finally be able to debug my rails apps...&lt;/p&gt;
&lt;p&gt;- tried aptana, failed with some known bug with debugging&lt;/p&gt;
&lt;p&gt;- trying komodo 4.1 now&lt;br /&gt;
- vista, komodo, oneclick ruby&lt;br /&gt;
- created a new project via komodo&lt;br /&gt;
- create models and migrated db via komodo&lt;br /&gt;
- ran webrick via komodo&lt;/p&gt;
&lt;p&gt;- tried to debug via komodo, the cmd console shows up and just sits there empty as can be&lt;/p&gt;
&lt;p&gt;now what ?&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/rails-debug-hangs-1st-tim#comments</comments>
 <category domain="http://community.activestate.com/forums/komodo-discussion-0">Komodo discussion</category>
 <category domain="http://community.activestate.com/os/windows-vista">Windows Vista</category>
 <pubDate>Fri, 13 Jul 2007 19:57:08 +0100</pubDate>
 <dc:creator>aktxyz</dc:creator>
 <guid isPermaLink="false">1142 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
