Deployer Extensions with Eclipse - Step 7: Debug your code from Eclipse

In this step you will learn how to start the deployer in debug mode from eclipse and iterate step by step over your code.

Tutorial Steps

Running the deployer from Eclipse in Debug mode

  1. Set  a breakpoint in within Eclipse in the line where you want to start debugging, by double clicking in the left margin of your editor window

    New Component

  2. Start the deployer in Debug Mode.  Right Click over it and click on "Debug as ... >> Java Application"

    Debug_As_Eclipse.jpg

  3. Your deployer is now running from eclipse  in Debug Mode

    Deployer_Running_From_Eclipse_Bar.jpg

  4. You are ready to check your code again. Drag & Drop the package (zip file) we saved in the very first step into your incoming folder. Remember to clean up first the incoming folder, i.e. it should be empty, so no files or folders within the Incoming folder. 

    Drag_And_Drop_Package.jpg

  5. Eclipse is in debug mode and stops the execution in the line where you set your break point

    Eclipse_Debug_Screen.jpg

  6. Now you can debug your code, check variables, step in & over, etc...  

Next Step: Other considerations and tips

Move on to the next step of this tutorial: Other considerations and tips

About the Author
Jaime Santos Alcon
Technical Consultant

Originally from Madrid, Jaime is working from SDL Tridion's office in New York, US. He started as a Java developer and moved into the Web Content Management space. Has been working with Tridion's CMS for the past 6 years.

SDL CMT division