Is iPaaS solving the right problems? Not knowing the fundamental difference between iPaaS and dPaaS could cost you down the road. Brought to you in partnership with Liaison Technologies.
In this tutorial I'm going to show you how to debug carbon kernel. This method is actually called the remote debugging.
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.. :)
Discover the unprecedented possibilities and challenges, created by today’s fast paced data climate and why your current integration solution is not enough, brought to you in partnership with Liaison Technologies.