Note that there are some explanatory texts on larger screens.

plurals
  1. PONetbeans debugger not stopping on breakpoints
    primarykey
    data
    text
    <p>My Netbeans debugger mysteriously stopped working a couple days ago and I don't recall making any serious changes.</p> <p>The oddest part is that if I choose to run the project, it correctly passes my arguments and runs the program. Also note that this is for every netbeans project, even ones that previously were debuggable three days ago.</p> <p>Here is the basic rundown</p> <ul> <li>I set a breakpoint on the first line in main (and yes, I am sure that the program should be getting to that line).</li> <li>I hit debug</li> <li>The debugger does not stop at my breakpoint and says the program completed successfully, even if it should have thrown an <code>ArrayOutOfBoundsException</code>.</li> </ul> <p>I have tried restarting my JVM, restarting Netbeans, restarting my VM, to no avail.</p> <p>The eclipse debugger, on the other hand, does work which tells me it is not something with my java distro but rather with Netbeans. </p> <p>My nbactions file</p> <pre><code>&lt;action&gt; &lt;actionName&gt;run&lt;/actionName&gt; &lt;packagings&gt; &lt;packaging&gt;jar&lt;/packaging&gt; &lt;/packagings&gt; &lt;goals&gt; &lt;goal&gt;process-classes&lt;/goal&gt; &lt;goal&gt;org.codehaus.mojo:exec-maven-plugin:1.2.1:exec&lt;/goal&gt; &lt;/goals&gt; &lt;properties&gt; &lt;exec.args&gt;-classpath %classpath GlobalFunctions 13392&lt;/exec.args&gt; &lt;exec.executable&gt;java&lt;/exec.executable&gt; &lt;/properties&gt; &lt;/action&gt; &lt;action&gt; &lt;actionName&gt;debug&lt;/actionName&gt; &lt;packagings&gt; &lt;packaging&gt;jar&lt;/packaging&gt; &lt;/packagings&gt; &lt;goals&gt; &lt;goal&gt;process-classes&lt;/goal&gt; &lt;goal&gt;org.codehaus.mojo:exec-maven-plugin:1.2.1:exec&lt;/goal&gt; &lt;/goals&gt; &lt;properties&gt; &lt;exec.args&gt;-Xdebug -Xrunjdwp:transport=dt_socket,server=n,address=${jpda.address} -classpath %classpath GlobalFunctions 13392 &lt;/exec.args&gt; &lt;exec.executable&gt;java&lt;/exec.executable&gt; &lt;jpda.listen&gt;true&lt;/jpda.listen&gt; &lt;/properties&gt; &lt;/action&gt; </code></pre> <p>I've done some checking an it seems like most issues similar to this arise when debugging PHP. This is not the case as I am developing Java. </p> <p>I know I can simply reinstall Netbeans, but I'd like to find out why this is happening.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload