<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Using Eclipse for inline debugging with Rails</title>
	<atom:link href="http://www.misuse.org/science/2006/09/13/using-eclipse-for-inline-debugging-with-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.misuse.org/science/2006/09/13/using-eclipse-for-inline-debugging-with-rails/</link>
	<description>It would be a good idea.</description>
	<pubDate>Fri, 25 Jul 2008 23:53:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: science</title>
		<link>http://www.misuse.org/science/2006/09/13/using-eclipse-for-inline-debugging-with-rails/#comment-1407</link>
		<dc:creator>science</dc:creator>
		<pubDate>Wed, 19 Mar 2008 15:32:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.misuse.org.check.geekisp.com/cms/2006/09/13/using-eclipse-for-inline-debugging-with-rails/#comment-1407</guid>
		<description>Deirdre:

I have not tried the "new" RadRails system made by Aptana. The entire system above is designed for the original RadRails (0.7.2?) - which is still available on Aptana's site I think.

But I believe that new RadRails has its own in-line debugging system - so you might read up on Aptana's forums for information on making it work. It's probably not much better (ie faster) than our method but at least it's supported by a real company!

Post back if you want help on 0.7.2 RadRails..</description>
		<content:encoded><![CDATA[<p>Deirdre:</p>
<p>I have not tried the &#8220;new&#8221; RadRails system made by Aptana. The entire system above is designed for the original RadRails (0.7.2?) - which is still available on Aptana&#8217;s site I think.</p>
<p>But I believe that new RadRails has its own in-line debugging system - so you might read up on Aptana&#8217;s forums for information on making it work. It&#8217;s probably not much better (ie faster) than our method but at least it&#8217;s supported by a real company!</p>
<p>Post back if you want help on 0.7.2 RadRails..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deirdre Lee</title>
		<link>http://www.misuse.org/science/2006/09/13/using-eclipse-for-inline-debugging-with-rails/#comment-1404</link>
		<dc:creator>Deirdre Lee</dc:creator>
		<pubDate>Wed, 19 Mar 2008 11:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.misuse.org.check.geekisp.com/cms/2006/09/13/using-eclipse-for-inline-debugging-with-rails/#comment-1404</guid>
		<description>Hi,

I've set up RadRails in Eclipse as specified in the article, but I always get a java.lang.reflect.InvocationTargetException when launching a debug. Running the same server causes no problems. I'm using webrick, rails 1.2.6, RadRails  1.0.0.2, and ruby 1.8.6.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve set up RadRails in Eclipse as specified in the article, but I always get a java.lang.reflect.InvocationTargetException when launching a debug. Running the same server causes no problems. I&#8217;m using webrick, rails 1.2.6, RadRails  1.0.0.2, and ruby 1.8.6.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: science</title>
		<link>http://www.misuse.org/science/2006/09/13/using-eclipse-for-inline-debugging-with-rails/#comment-50</link>
		<dc:creator>science</dc:creator>
		<pubDate>Sun, 16 Sep 2007 20:00:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.misuse.org.check.geekisp.com/cms/2006/09/13/using-eclipse-for-inline-debugging-with-rails/#comment-50</guid>
		<description>I haven't tried making Mongrel work but max_willams has. I think he's written up some stuff about on his blog: http://nubyonrails.wordpress.com/

It may not really appropriate to run the server inside Eclipse but it seems to work and given that there are no other free in-line debugger solutions out there, it seems reasonable? I'd be very interested in any information as to how to make remote debugger connections in Eclipse. Essentially the RDT guys have made it really easy to connect Ruby instances to the Java debugger within Eclipse. I'm not sure what they're doing, so I have no idea how to do it outside of Eclipse, but if you browsed their source code, I'm sure some ideas would come up. Keep us posted!</description>
		<content:encoded><![CDATA[<p>I haven&#8217;t tried making Mongrel work but max_willams has. I think he&#8217;s written up some stuff about on his blog: <a href="http://nubyonrails.wordpress.com/" rel="nofollow">http://nubyonrails.wordpress.com/</a></p>
<p>It may not really appropriate to run the server inside Eclipse but it seems to work and given that there are no other free in-line debugger solutions out there, it seems reasonable? I&#8217;d be very interested in any information as to how to make remote debugger connections in Eclipse. Essentially the RDT guys have made it really easy to connect Ruby instances to the Java debugger within Eclipse. I&#8217;m not sure what they&#8217;re doing, so I have no idea how to do it outside of Eclipse, but if you browsed their source code, I&#8217;m sure some ideas would come up. Keep us posted!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Desmond</title>
		<link>http://www.misuse.org/science/2006/09/13/using-eclipse-for-inline-debugging-with-rails/#comment-48</link>
		<dc:creator>Desmond</dc:creator>
		<pubDate>Sat, 15 Sep 2007 00:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.misuse.org.check.geekisp.com/cms/2006/09/13/using-eclipse-for-inline-debugging-with-rails/#comment-48</guid>
		<description>Hey, thanks for the debugger setup instructions.  I set and project that worked fine with WEBrick.  I then set up two other projects with Mongrel.  One worked fine.  The other works, but sends my CPU usage to 99% and the rails app gets to my break point several minutes after the page request.  Anyone know what the problem might be?

Also, is it really appropriate to run the server from within Eclipse?  I thought it must be feasible and more desirable to run it externally, and then connect to it in the same way that the debugger connects to a JVM.  I don't know for sure whether this is a possibility and surely wouldn't know how to set this up.</description>
		<content:encoded><![CDATA[<p>Hey, thanks for the debugger setup instructions.  I set and project that worked fine with WEBrick.  I then set up two other projects with Mongrel.  One worked fine.  The other works, but sends my CPU usage to 99% and the rails app gets to my break point several minutes after the page request.  Anyone know what the problem might be?</p>
<p>Also, is it really appropriate to run the server from within Eclipse?  I thought it must be feasible and more desirable to run it externally, and then connect to it in the same way that the debugger connects to a JVM.  I don&#8217;t know for sure whether this is a possibility and surely wouldn&#8217;t know how to set this up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: max williams</title>
		<link>http://www.misuse.org/science/2006/09/13/using-eclipse-for-inline-debugging-with-rails/#comment-41</link>
		<dc:creator>max williams</dc:creator>
		<pubDate>Fri, 03 Aug 2007 10:02:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.misuse.org.check.geekisp.com/cms/2006/09/13/using-eclipse-for-inline-debugging-with-rails/#comment-41</guid>
		<description>Thanks - i managed to fix it though.  I'd set my project up wrong - i'd imported an existing project, but it was running in the default project folder - so a copy of the files were running and i was editing the originals (or maybe vice versa).  Deleted the project, re-imported it and made sure the working folder was the same as the imported folder, and breakpoints seem to work fine now.

Thanks a lot for the advice though and thanks again for this guide :)</description>
		<content:encoded><![CDATA[<p>Thanks - i managed to fix it though.  I&#8217;d set my project up wrong - i&#8217;d imported an existing project, but it was running in the default project folder - so a copy of the files were running and i was editing the originals (or maybe vice versa).  Deleted the project, re-imported it and made sure the working folder was the same as the imported folder, and breakpoints seem to work fine now.</p>
<p>Thanks a lot for the advice though and thanks again for this guide :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: science</title>
		<link>http://www.misuse.org/science/2006/09/13/using-eclipse-for-inline-debugging-with-rails/#comment-40</link>
		<dc:creator>science</dc:creator>
		<pubDate>Thu, 02 Aug 2007 16:05:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.misuse.org.check.geekisp.com/cms/2006/09/13/using-eclipse-for-inline-debugging-with-rails/#comment-40</guid>
		<description>Max: 

Just to be clear, you are running Rails from within Eclipse and then accessing the appropriate localhost URL from a web browser?

If so, I'd say you should try to get debugging working from within Webrick first. You can do this by setting your file to "script\server webrick" (this will force server.rb to run webrick instead of mongrel). 

Also be sure you are looking at the "Console" window inside Eclipse - you'll get lots of useful error messages there. One easy mistake is to leave a server running accidentally out on a command shell someplace (listening on port 3000 or whatever) and then attempting to run a debug instance that tries to listen on the same port - this will fail of course - but with a weird Net::HTTP error as I remember).

Also, be sure that "allocate console" option is set (under the common tab).

Try the file option of "script\console" as well - see if you can get this to pop up a console window - might help with figuring out what's wrong. This is also a great technique for debugging stuff where it's a pain to access it from a browser - I'm learning this is a very powerful technique.

Finally, setting breakpoints themselves are kind of spooky in Eclipse via RDT. As I mention in the article, once you set a breakpoint and run, it kind of turns itself off. Not sure exactly what's going on there but the safest thing is to shut down Eclipse, open it up again, set a breakpoint, fire up the debugger, wait for it to load completely, then hit your app from a browser..

Post back if you're still not getting anywhere.</description>
		<content:encoded><![CDATA[<p>Max: </p>
<p>Just to be clear, you are running Rails from within Eclipse and then accessing the appropriate localhost URL from a web browser?</p>
<p>If so, I&#8217;d say you should try to get debugging working from within Webrick first. You can do this by setting your file to &#8220;script\server webrick&#8221; (this will force server.rb to run webrick instead of mongrel). </p>
<p>Also be sure you are looking at the &#8220;Console&#8221; window inside Eclipse - you&#8217;ll get lots of useful error messages there. One easy mistake is to leave a server running accidentally out on a command shell someplace (listening on port 3000 or whatever) and then attempting to run a debug instance that tries to listen on the same port - this will fail of course - but with a weird Net::HTTP error as I remember).</p>
<p>Also, be sure that &#8220;allocate console&#8221; option is set (under the common tab).</p>
<p>Try the file option of &#8220;script\console&#8221; as well - see if you can get this to pop up a console window - might help with figuring out what&#8217;s wrong. This is also a great technique for debugging stuff where it&#8217;s a pain to access it from a browser - I&#8217;m learning this is a very powerful technique.</p>
<p>Finally, setting breakpoints themselves are kind of spooky in Eclipse via RDT. As I mention in the article, once you set a breakpoint and run, it kind of turns itself off. Not sure exactly what&#8217;s going on there but the safest thing is to shut down Eclipse, open it up again, set a breakpoint, fire up the debugger, wait for it to load completely, then hit your app from a browser..</p>
<p>Post back if you&#8217;re still not getting anywhere.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: max williams</title>
		<link>http://www.misuse.org/science/2006/09/13/using-eclipse-for-inline-debugging-with-rails/#comment-39</link>
		<dc:creator>max williams</dc:creator>
		<pubDate>Thu, 02 Aug 2007 15:38:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.misuse.org.check.geekisp.com/cms/2006/09/13/using-eclipse-for-inline-debugging-with-rails/#comment-39</guid>
		<description>Hi there - thanks for the very informative post!

I've just got set up with radrails in eclipse, using mongrel_rails.  I followed all the instructions above (i think), including the new file for mongrel_rails, and my app seems to debug ok (nice debug text scrolls through the eclipse console window when i move around the site).  

My problem is with breakpoints - i put one on the first line of a controller method, then started the debugger and called the method in the usual way (ie by using my app).  But the debugger didn't halt on the breakpoint, it just carried on.

My debug config settings are as follows:  (my app is called newspipe) 

File:
  name:  newspipe_server
  file:  script\mongrel_debug.rb
arguments:
  interpreter arguments: -I"C:\code\InstantRails\ruby\lib\ruby\gems\1.8\gems\rails-1.2.3"
  program arguments: C:\code\InstantRails\ruby\bin\rubyw.exe

Does anyone have any idea what my problem might be?  
thanks again - max</description>
		<content:encoded><![CDATA[<p>Hi there - thanks for the very informative post!</p>
<p>I&#8217;ve just got set up with radrails in eclipse, using mongrel_rails.  I followed all the instructions above (i think), including the new file for mongrel_rails, and my app seems to debug ok (nice debug text scrolls through the eclipse console window when i move around the site).  </p>
<p>My problem is with breakpoints - i put one on the first line of a controller method, then started the debugger and called the method in the usual way (ie by using my app).  But the debugger didn&#8217;t halt on the breakpoint, it just carried on.</p>
<p>My debug config settings are as follows:  (my app is called newspipe) </p>
<p>File:<br />
  name:  newspipe_server<br />
  file:  script\mongrel_debug.rb<br />
arguments:<br />
  interpreter arguments: -I&#8221;C:\code\InstantRails\ruby\lib\ruby\gems\1.8\gems\rails-1.2.3&#8243;<br />
  program arguments: C:\code\InstantRails\ruby\bin\rubyw.exe</p>
<p>Does anyone have any idea what my problem might be?<br />
thanks again - max</p>
]]></content:encoded>
	</item>
</channel>
</rss>
