Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to Debug WSO2 Carbon Kernel Tutorial

DZone's Guide to

How to Debug WSO2 Carbon Kernel Tutorial

· Integration Zone ·
Free Resource

SnapLogic is the leading self-service enterprise-grade integration platform. Download the 2018 GartnerMagic Quadrant for Enterprise iPaaS or play around on the platform, risk free, for 30 days.

In this tutorial I'm going to show you how to debug carbon kernel. This method is actually called the remote debugging.
  1. *For this you'll need a carbon which build from the source. Refer this post.
  2. *An IDE, For this I'm using IDEA.
  3. *Carbon based product I'm using WSO2 Application Server for this tutorial.
Ok now first start the application server in debug mode. Go to  AS-SERVER/bin and execute the following command.
aruna@aruna-Latitude-E6540:~/Downloads/wso2as-5.2.0/bin$ ./wso2server.sh debug 5005
Now start the IDEA IDE. and import the kernel. Just select the root pom.xml and open.
Then create a remote debug configuration. Go to Run --> Edit Configurations... Then press Alt + Insert and select Remote. Give a name to the configuration and complete by pressing apply.

That's it you have configured the IDE and ready to debug. Put a break point and check if it's working. Let's put the break point in the main method.
In the package org.wso2.carbon.server; put a break point to Main.java file. Then press Shift + F9  to start debugging.
That's it for now and happy debugging.. :)

With SnapLogic’s integration platform you can save millions of dollars, increase integrator productivity by 5X, and reduce integration time to value by 90%. Sign up for our risk-free 30-day trial!

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}