In the work of a SAP Consultant comes time when you need to debug a program in the background mode or a running BJob.
There is a simple trick how to do this:
1. Set a breakpoint in ABAP report / FM that you want to debug.
![](https://marchukan.com/wp-content/uploads/2021/01/image.png)
2. Create a background JOB in SM36 transaction or use any other available methods. Set a future time for start (enough +10 min).
![](https://marchukan.com/wp-content/uploads/2021/01/image-1.png)
![](https://marchukan.com/wp-content/uploads/2021/01/image-2.png)
![](https://marchukan.com/wp-content/uploads/2021/01/image-3.png)
![](https://marchukan.com/wp-content/uploads/2021/01/image-4.png)
3. In SM37 transaction, put the cursor on the job line, type ‘JDBG‘ in the command line ( no ‘/’ ) and press enter.
![](https://marchukan.com/wp-content/uploads/2021/01/image-6-1024x281.png)
4. The JOB will start in debug mode.
![](https://marchukan.com/wp-content/uploads/2021/01/image-7-1024x576.png)