<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog::Quibb &#187; netbeans</title>
	<atom:link href="http://blog.quibb.org/tag/netbeans/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.quibb.org</link>
	<description>Software development and more.</description>
	<lastBuildDate>Tue, 10 Aug 2010 14:11:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Netbeans Debugger Not Stopping at Breakpoints</title>
		<link>http://blog.quibb.org/2008/12/netbeans-debugger-not-stopping-at-breakpoints/</link>
		<comments>http://blog.quibb.org/2008/12/netbeans-debugger-not-stopping-at-breakpoints/#comments</comments>
		<pubDate>Wed, 03 Dec 2008 02:03:57 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[debugger]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[netbeans]]></category>

		<guid isPermaLink="false">http://blog.quibb.org/?p=19</guid>
		<description><![CDATA[I use Netbeans for doing development for JRuby.  When I say that I don&#8217;t mean I&#8217;m developing with JRuby, I mean for JRuby.  I&#8217;m writing Java code, and wanted to use the debugger for Java code.  Everytime I mentioned JRuby people would assume I was using it and developing Ruby code, that&#8217;s not the case [...]]]></description>
			<content:encoded><![CDATA[<p>I use Netbeans for doing development for JRuby.  When I say that I don&#8217;t mean I&#8217;m developing with JRuby, I mean for JRuby.  I&#8217;m writing Java code, and wanted to use the debugger for Java code.  Everytime I mentioned JRuby people would assume I was using it and developing Ruby code, that&#8217;s not the case at all.  By the way, an awesome way to learn the ins and outs of a language is to develop <em>another</em> language in it.  I&#8217;ve learned quite a bit about Java since I started working on this, and I&#8217;d have called myself proficient in Java before starting.</p>
<p>Anyway, when I was trying to use the Netbeans debugger on JRuby it wasn&#8217;t stopping at my breakpoints, and I couldn&#8217;t figure out why.  I thought it might have something to do with me using linux, and after people ran out of ideas they seemed to think the same thing.  This turned out to not be the case.  It was a problem with the ant script for running the debugger.</p>
<p>It was as simple as changing this:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;nbjpdastart</span> <span style="color: #000066;">addressproperty</span>=<span style="color: #ff0000;">&quot;jpda.address&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;JRuby&quot;</span> <span style="color: #000066;">transport</span>=<span style="color: #ff0000;">&quot;dt_socket&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;classpath<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>        
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pathelement</span> <span style="color: #000066;">path</span>=<span style="color: #ff0000;">&quot;${jruby.classes.dir}&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;path</span> <span style="color: #000066;">refid</span>=<span style="color: #ff0000;">&quot;build.classpath&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/classpath<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>      
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/nbjpdastart<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>to this:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;nbjpdastart</span> <span style="color: #000066;">addressproperty</span>=<span style="color: #ff0000;">&quot;jpda.address&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;JRuby&quot;</span> <span style="color: #000066;">transport</span>=<span style="color: #ff0000;">&quot;dt_socket&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;classpath<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>        
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pathelement</span> <span style="color: #000066;">path</span>=<span style="color: #ff0000;">&quot;${jruby.classes.dir}&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;path</span> <span style="color: #000066;">refid</span>=<span style="color: #ff0000;">&quot;build.classpath&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/classpath<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>      
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;sourcepath</span> <span style="color: #000066;">path</span>=<span style="color: #ff0000;">&quot;${src.dir}&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/nbjpdastart<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>The sourcepath makes all the difference.  I&#8217;m posting this because nbjpdastart has very little documentation, and it took me quite a while to figure this out.  I hope this saves you some time.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.quibb.org/2008/12/netbeans-debugger-not-stopping-at-breakpoints/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
