You can pass java options through the netbeans launcher via -J<javaarg>
. This will run netbeans with debugging enabled:
Code Block |
---|
language | bash |
---|
title | Start pre-built NetBeans and wait for debugger to attach |
---|
|
$ /bin/netbeans |
-J-agentlib:jdwp=transport=dt_socket,suspend=y,server=y,address=9009 |
To run a freshly build netbeans you can invoke:
Code Block |
---|
language | bash |
---|
title | Run development version through Ant waiting for debugger |
---|
|
$ ant -Ddebug.port=9009 tryme |
This will start the build IDE with a test userdir and it will wait on tcp port 9009 for debugger connections.