FaqDebuggingNetBeans

(Difference between revisions)
 
Line 6: Line 6:
# Pass the debugging options prepended with '-J' to 'netbeans' program. Like:<br><tt>netbeans -J-Xdebug -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8888</tt>
# Pass the debugging options prepended with '-J' to 'netbeans' program. Like:<br><tt>netbeans -J-Xdebug -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8888</tt>
# Start another instance of NetBeans, which will be used as a debugger.
# Start another instance of NetBeans, which will be used as a debugger.
-
# Attach to the first instance of NetBeans as described at [http://wiki.netbeans.org/wiki/view/FaqDebuggingRemote#Attaching''to''the''application''fro Attaching to the application from NetBeans].
+
# Attach to the first instance of NetBeans as described at [http://wiki.netbeans.org/FaqDebuggingRemote#Attaching_to_the_application_from_NetBeans Attaching to the application from NetBeans].

Current revision as of 13:28, 20 November 2009

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