When we finish the development and test in local environment, we will deploy our applications in remote server. We hope and believe it will work but we are always too optimistic. The application met different kinds of problems. In order to fix it, we sometimes need to access code directly in remote server container. Today, we will see how to do debug remotely. Remote Debug When we develop our application in local, we always using IDE to do it. We code and run and debug in IDE which provides much convenience. Even though we can debug application with jdb – a command line tools bundled into JDK, we may prefer to use IDE. So, we only cover the content of using IDE to debug here. If you are interested in using jdb , you may like this jdb tutorial . Runnable Jar In order to debug a remote JVM, we have to add some parameters to let JVM opening the debug port so that we can attach to it. The following is the command to start a runnable Jar : java "-agentlib:jdwp=transport=dt_so...
Learn programming, still on the way