|
We don't recommand using Debug Job option to debug remote Java application. Actually, it is not officially supported by WDSC Integrated Debugger.Thank you for your answer. I tried to locate this in the help text, and it appears to be that OPM and ILE is supported (with appropriate magic used). Bother.
For attaching to remote java application, you could use the Eclipse basic support for debugging remote java. Steps:I am aware of this possibility, and it is this approach I am looking for alternatives to for _production_ situations. I do not like having to explain to the customer that we need a unique global port assigned to each and every Java program running on this machine (our product supports numerous installations on the same iSeries) and that each of these open ports basically allow anyone with a Java debugger to hot deploy and hence run arbitrary code on the machine.
. Create a Java project in your workspace, with the java source your want to debug
. add the following options when the JVM is started:
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
. Create a new Remote Java Applicaiton launch configuration, specifying the java project, Connection Properties (host name, and the port #, which is 8000 in this case), and debug the application.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.