When running a background job has been completed, but unfortunately, mistakes happen, then we can also Debug by SM37, as follows,
1, SM37 display background JOB
Press Step to the next screen,
2, set a breakpoint
In Step list screen, click goto -> program enters abap editor, set breakpoints,
3, enter the command bar JDBG
Returns to the background job overview of the interface, and then enter the command bar JDBG and press Enter to start a background job debug,
Enter debug mode
F8 to run the program, the program will stop at the breakpoint you just set,
the above.