title: NetBeans, Can't Set Breakpoint, "outside of any class"
body: <p>I'm working on a <strong>NetBeans</strong> project with multiple sub-modules.  The application runs on <strong>WildFly</strong>. Both are new to me, but I was able to create a local WildFly server that seems to run the application.  I can also then attach the debugger, by process ID or port.  But this is where I'm stuck.  Any attempt to set a breakpoint results in <code>&quot;Not able to submit breakpoint LineBreakpoint SomeModuleClass.java : 123, reason: The breakpoint is set outside of any class.&quot;</code></p>
  <p>I've tried this with the NetBeans WildFly server, starting WildFly independently of NetBeans but still locally, and on a hosted development instance -- all with no luck. Yes, it's being set on an executable line.  But weirdly, another team member has been able to attach and set breakpoints using (as far as I can tell) an identical setup. <strong>[Update: turns out my peer is running NB on Windows on her host laptop whereas I'm on Ubuntu in a VM. I'd expect application differences but not with basic functionality.]</strong></p>
  <p>I've tried opening up submodule projects and setting breakpoints through them, changing the &quot;Main Project&quot;, clean builds, reloads, reboots...  nothing.  I've also searched SO and Google for similar issues but have found no solutions.  Seems like it must be in my NetBeans configuration since my peer doesn't see this with the same code or same external server.  Could there be some build setting that is losing some class path info?</p>
  <p>Does anyone have any ideas about what's going on here?</p>
  <p>[NetBeans 13, Open JDK 11, WildFly 21, Ubuntu 20.04]</p>
  <p>[Update:]
  As I said &quot;Any attempt to set a breakpoint...&quot;  Such as any line in this class's method:</p>
  <pre><code>public class DateUtils {
      public static long convertMillisecondsToHours(long millis) {
          if (millis &gt; 0) {
              return TimeUnit.MILLISECONDS.toHours(millis);
          } else {
              return millis;
          }   
      }
  }
  </code></pre>
  <p>Here's how I'm starting the server and debugger:</p>
  <p>Starting the server:</p>
  <p><a href="https://i.stack.imgur.com/si2k2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/si2k2.png" alt="Starting the server" /></a></p>
  <p>Starting the debugger:</p>
  <p><a href="https://i.stack.imgur.com/Sz7T5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sz7T5.png" alt="Starting the debugger" /></a></p>
  <p>Configuring the debugger (note break points are set and happy):</p>
  <p><a href="https://i.stack.imgur.com/8zG36.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8zG36.png" alt="Configuring the debugger" /></a></p>
  <p>Debugger is launched and break points are broken:</p>
  <p><a href="https://i.stack.imgur.com/LJc8J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LJc8J.png" alt="Debugger launched" /></a></p>