• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

debug web application using intellij and tomcat 5

 
Habib Ghayoumi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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

thanks in advance
Habib
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64993
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.
 
Habib Ghayoumi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
stanislav bashkirtsev
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat should be ran by Idea, not by you manually. I don't know exactly how to tune this process in Idea6, but look for Web Server issue in your Preferences.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18226
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic