• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

debug web application using intellij and tomcat 5

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27808
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic