Friday, November 21, 2008

Debugging Mule Application in Eclipse

Two ways to debug a Mule application:

First, Mule user guide has this page, Remote Debugging a Mule Server. Free registration is required to access this page. The page lists all the default steps, but that's all unnecessary as you only need to follow instructions at the top of the page, i.e., launch Mule with a -debug switch. Default debug port is 5005. Just go ahead and attach to the Mule instance using Eclipse's Remote Java Application configuration. What's good with this approach is remote Mule instances can be attached to and debugged.

Alternatively you can choose to launch Mule from inside Eclipse. Follow the section "Create a Run Configuration and Run the Application" in this page Setting Up Eclipse - Mule 2.x Getting Started Guide, basically set up a Java Application run configuration using org.mule.MuleServer, specify -config argument, then simply launch it in debug mode.


1 comment:

bhanu sreee said...

This information is really awesome thanks for sharing most valuable information.
Mulesoft Online Training
Mulesoft Training in Bangalore