Using the Java debugger to debug Talend jobs
Occasionally, it is necessary to delve deeper into the Java code generated by Talend in order to locate and understand the cause of a bug. This recipe is a very light introduction for debugging Talend code using the Java debugging mode in Talend.
Getting ready
Open the jo_cook_ch10_0040_useJavaDebugger
job.
How to do it...
The steps for using the Java debugger to debug Talend jobs are as follows:
Select the Debug Run option from the Run dialogue and click on the down arrow for the run type. Select Java Debug to run using the Java option.
Confirm the perspective switch by clicking Yes.
Click the resume icon to start the job running.
The job will execute and return an error. Scroll through the console output (bottom panel), and you will see the error, as shown in the following screenshot:
Click the hyperlink for line 2574. This will take you to the line that is causing an error.
Adding a breakpoint to allow inspection of data:
Right-click on the line number...