How to debug JavaCode in BusinessStudio

How to debug JavaCode in BusinessStudio

book

Article ID: KB0081217

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks 6.x

Description

Steps to Debug JavaCode in Business Studio

Issue/Introduction

How to debug JavaCode in BusinessStudio

Environment

All

Resolution

Steps to Debug JavaCode in Business Studio:
1. Create a Java Program and a BW process that uses the Java Program in 6.x Studio.
  User-added image
2. Define the Business logic in the function and put a breakpoint in the Java Program accordingly. (Multiple breakpoints can be used for debugging)
User-added image
 
3. While trying to debug the BW process, Goto Advanced->Check the Launch JDT Debugger to get the Debug Perspective for Java Program.
  User-added image
4. In the Debug perspective-Debug Tab, we can see Suspended Thread where the breakpoint is used in Java Program and the execution is halted. (Note: By default in the debug perspective we can see the businessWorks Jobs, we will have to manually select the debug tab to view the java threads).
User-added image
User-added image
 5.Once the thread is resumed, the program and process completes execution 
  User-added image
User-added image 
6. Check the console logs also for analysis.