How do I debug NetBeans?

  1. Read How to attach NetBeans debugger to a running application.
  2. Assure that parameter -Dbuild.compiler.debug=true is passed to ant when building NetBeans or module that is to be debugged (this will pass -g to javac).
  3. Pass the debugging options prepended with '-J' to 'netbeans' program. Like:
    netbeans -J-Xdebug -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8888
  4. Start another instance of NetBeans, which will be used as a debugger.
  5. Attach to the first instance of NetBeans as described at Attaching to the application from NetBeans.
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo