com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links' is unknown.

Debugging Applications

Follow the instructions below to learn how to debug an application using WSO2 Developer Studio.

For example, you may develop a simple Apache Axis2 Service and want to debug your service when you invoke it.

  1. First, create a simple GreetingService.



  2. Create a Composite Application Project to group it. 
  3. Add a WSO2 Application Server instance to your Eclipse workspace. For information on adding a Carbon Server, see Deploy a C-App to a running server inside Eclipse. After adding the server, start the server in the Debug mode as shown below.



  4. After the server has successfully started, add the GreetingServiceCApp project.



  5. When your application has deployed successfully, you will see the following messages in your console.



  6. Now go to your web browser and check whether your application has being deployed under the Web Services Listing page.



  7. Click the Try This Service option in the right hand corner of the respective service. A separate page appears with a list of all the operations related to the web service you chose.



  8. Before you invoke the service, go back to your Eclipse Workspace and put a debug point inside your method.



  9. Now go back to your web console and invoke the service. Once you invoke the service, you are asked whether to switch to the Debug Perspective in Eclipse. Click Yes. If your Eclipse instance could not find the relevant source for the class, a blank page is displayed as shown below.


     

  10. Click Edit Source Lookup Path. 



  11. Click Add and select the Java Project.
  12. Select the GreetingService project from the list and click OK. Now you will see the source attached and you will see the debug point being hit.

In a similar manner, you can debug any application associated with Java Sources.

com.atlassian.confluence.content.render.xhtml.migration.exceptions.UnknownMacroMigrationException: The macro 'next_previous_links2' is unknown.