1 minute read

The below steps will show you how to use the built-in debugger and set breakpoints in any of the standard objects within D365 F&O.

Symbol settings

Navigate to Tools > Options > Debugging > Symbols and check Load all modules, unless excluded:

Debugging settings 1

Keep the same Options window open and navigate to Dynamics 365 > Debugging. Make sure Load symbols only for items in the solution is unchecked:

Debugging settings 2

A general explanation surrounding the use of symbol files within Visual Studio can be found here.

Set a breakpoint

Lets add a breakpoint to a standard object, for example the run method of the CustTable form:

CustTable

Add the πŸ”΄ breakpoint (F9):

Add breakpoint

Attach to process

Navigate to Debug > Attach to Process, which will open the Attach to Process dialog box:

Attach to process 1

Attach to process 2

  • Connection type: leave Default selected
  • Connection target: hostname of your local machine

At the bottom, make sure to select Show processes from all users. In the list of Available processes, search for the w3wp.exe process. This is the IIS worker process, the local web server hosting our F&O instance.

⚠️ If you’re using IIS Express instead of IIS, search for the iisexpress.exe process.

After selecting the correct process, click Attach. This will start the debugger within Visual Studio.

Launch browser

Now launch F&O from your browser and call the CustTable form by going to Accounts receivable > Customers > All customers:

All customers

Visual Studio will then hit the breakpoint upon loading the form:

Hit breakpoint

More information on debugging within D365 F&O can be found on πŸ“– Microsoft Docs.

Comments