FaqDebuggingNetBeans
How do I debug NetBeans?
- Read How to attach NetBeans debugger to a running application.
- 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).
- 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
- Start another instance of NetBeans, which will be used as a debugger.
- Attach to the first instance of NetBeans as described at Attaching to the application from NetBeans.
|
|