Remote Debugging
Debugging a SOFABoot project is no different from debugging an ordinary Java program. You can run the run time in Debug mode by using a local IDE. To run java -jar on a local or server, you need to add parameters similar to the following:
java -jar -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000./target/APPNAME-web-1.0-SNAPSHOT-executable.jarIn this way, remote connection can be configured in IDE, but this "remote" is the localhost (connecting this machine by remote connection), and the open port is 8000.
The server is run time. If the server is connected to the local network, you only need to add the following debugging parameters: \
-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=yIn this way, you can configure a remote connection in the IDE, but this "remote" is the target server and the open port is 8000.
If suspend=y is the case, the JVM waits until the debugger remotely connects to the configured 8000 port. The general debugging startup process requires suspend=y; other scenarios can be suspend=n.