How to debug the active or finished batch jobs?
view
Schedule a batch job in SM36 transaction. Debugging an active job:Go to transaction SM50 (waiting/running/On hold
jobs.)/SM66 (Running/Debugging objects).Now select your job.From SM50: Menu => program/mode =>
Program=>Debugging. Now control will go to debug mode. From SM66: Place cursor on your job and click on debugging
button in tool bar. At this point, it may take some time to reach to debug mode. Debugging a finished/cancelled job:Place
a break point in the program. Go to SM37 and select your finished/cancelled job. Enter jdbg in command prompt. Click
enter.
Now control goes to debug mode. Press F8, now Control goes to your break point.