Java Industry News
Debugging Both Flex and Tomcat Java Programs in Eclipse
If you use Adobe Flex Web applications that connect to Plain Old Java Objects on the server side, chances are you use a popular, robust, and freely available server called Apache Tomcat. If you use Eclipse-based Flex Builder, you can smoothly debug both Flex and Java code without leaving Eclipse. Flex Builder debugger does not need any special configuration. But we need to add a couple of parameters to the startup routine of Tomcat so it'll engage the Java Platform Debugger Architecture (JPDA), which will allow other applications attach to JVM that runs Tomcat and debug deployed Java classes remotely.
Reader Feedback : Page 1 of 1
#1 |
Hello Yakov, Just want to point out that one doesn't have to always use JPDA when debugging Tomcat in Eclipse (or any IDE for that matter). You can define a run/debug configuration with org.apache.catalina.startup.Bootstrap as your main class running from Tomcat's home directory. You can additionally avoid redeploying web apps (and restarting the debug session) by defining the docBase in the deployed context file to point to your application's workspace folder so as you edit files Tomcat automatically redeploys with each save. regards, Dario |