To debug a Background Job ( After it has already executed ) – Execute the code JDBG from the command box.
— Simply filter and find the background job you want to debug then select that job and in the command box enter JDBG.( no need to enter /n because this is not a tcode )
— The program execution will start in Debug mode.
You might need to step through the code for some time to reach you actual code for execution.