How to debug background and async processes
1C:Enterprise applications can have procedures and functions that run as background jobs or come from async processes, like Html request, when trying to obtain data from a web service.
When debugging a piece of code, you are not able to access these elements by default. To do this, first you need to attach them for debugging:
- Go to Debug > Attach for debugging…
- Select the Autoattach option at the bottom of the window.
- Mark the checkboxes for the elements you want to attach for debugging.
After this is done the platform will no longer ignore the breakpoints set on the selected elements of the code.