I want to debug my application that runs on tomcat 5.5.27 . My IDE is intellij 6. I have lots of problems.
can anyone explain step by steb guide for debugging. My problem is related to socket, java_opts, catalina.bat
Bear Bibeault wrote:Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.
I have added a remote in IDEA and set the port . but when i start debugging nothing happens just a message that "you can not open the port ". i have added the port in catalina.bat too . This problem has confused me
There are 2 ways to do this. One is to let IntelliJ launch an embedded Tomcat and have it use that. The other is to launch an independent Tomcat with Remote Debugging switched on and have IntelliJ connect to it just like IntelliJ would do remote debugging on any other application. The "remote" simply means "In a separate JVM". You can use remote debugging on both the local machine or remote machines (providing the firewalls permit it).
Unless it has changed recently, the IntelliJ embedded Tomcat server synthesizes its "server.xml" configuration and only understands a limited set of features. Good enough for basic webapp development, but not some of the more evil things I often do. Plus it will only handle debugging one webapp at a time. If you want more, you need to launch a standalone Tomcat.
Consult the IntelliJ documentation for up-to-date details on how to set up and use the debugging profiles for embedded Tomcat and remote debugging.
Customer surveys are for companies who didn't pay proper attention to begin with.