This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes debug web application using intellij and tomcat 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "debug web application using intellij and tomcat 5" Watch "debug web application using intellij and tomcat 5" New topic
Author

debug web application using intellij and tomcat 5

Habib Ghayoumi
Greenhorn

Joined: Dec 30, 2008
Posts: 6
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

Joined: Jan 10, 2002
Posts: 56201
    
  13

Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Habib Ghayoumi
Greenhorn

Joined: Dec 30, 2008
Posts: 6
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

Joined: Aug 17, 2009
Posts: 75
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

Joined: Jun 25, 2001
Posts: 14487
    
    7

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: debug web application using intellij and tomcat 5
 
Similar Threads
Debugging using tomcat server in idea
Remote debugging in idea for Tomcat server
Tomcat issues under Intellij IDEA
IntelliJ debug with Tomcat 5
IntelliJ IDEA Debugging Question