Requirement
There are many process in Microsoft Dynamics 365 Finance and Operation which run in background as a batch jobs. The Debugging of Batch Jobs In Visual Studio is very common requirement.
Steps
- Go the Debug Menu & Click on “Attach To Process”.
- Show process from all users should be selected YES
- Attach To Value should be -Automatic: Managed (v4.6, v4.5, v4.0) code
- Select Process “Batch.exe” from available processes & run your batch job. Breakpoint will hit and you will be able to debug your code.