Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5922

Can't debug java pgm: says can't set breakpoint in main.java: no main.java in project

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.4
    • 12.4
    • cnd - Debugger
    • None

    Description

      I just installed NetBeans 12.4.  Created a test project TestDebug with  1 program, TestDebug.java with 1 executable sentence "System.out.println("TestDebug is Running".  Project compiles without errors. Click the debug button with no breakpoints set and get messages below in output 

        Listening on javadebug
      User program running
      Not able to submit breakpoint LineBreakpoint Main.java : 25, reason: The breakpoint is set
      outside of any class.
      Invalid LineBreakpoint Main.java : 25
      User program finished

       There is no Main.java in the project and TestDebug does not have 25 lines of code in it.  

      Attachments

        Activity

          People

            Unassigned Unassigned
            hglenkilgore H. Glen Kilgore
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: