To debug without setting up a startup project and startup object in D365 fotr operations. Follow these steps:
- Open your object in visual studio
- Place breakpoints
- Goto Debug>attach to process and check show processes from all users
- Select w3wp.exe and click attach.
You can execute your process now from the client and execution will be stopped at your breakpoints.
[…] (*): If you want to do execute some specific code, you’ll need to create a class with a main method , place your code in the main method and set the class as the default startup Object of your project and set your project as start up project of your solution, then run the solution, which will execute the class. [Check links: 1. Getting started & 2. Debugging without a startup object] […]
LikeLike