Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to attach to a remote process using Netbeans. Add the following to the command line switches for launching the application:
- -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=18889,suspend=y
- So if your command line is...
- java -Xmx1024m -jar MyFile.jar
- Do this...
- java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=18889,suspend=y -Xmx1024m -jar MyFile.jar
- This will suspend the process, listening on port 18889 until your debugger attaches...
- Do this...
- java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=18889,suspend=n -Xmx1024m -jar MyFile.jar
- ...and your process will launch normally but allow you to connect at any time on port 18889.
Advertisement
Add Comment
Please, Sign In to add comment