Debug code in a Retail online sample store

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

Applies To: Microsoft Dynamics AX 2012 R3

The sample online stores for Retail in Microsoft Dynamics AX 2012 R3 use SharePoint 2013 and code that is found in the Retail SDK. You can debug the sample online store code for the SharePoint pages in a browser window or by using Visual Studio. You use the F12 developer tools to debug code in a browser window. In Visual Studio, you can attach the worker process to debug your code.

Preparation for debugging

You must recompile the source code found in the Retail SDK and redeploy it before you can debug the code for the sample Retail online stores.

Debugging Retail online store site pages

The Retail SDK contains source code for the sample online stores. For more information, see Install Retail SDK (Retail POS Plug-ins) and Retail SDK.

Dn720293.collapse_all(en-us,AX.60).gifDebugging in a browser window

You can debug test, and speed up your webpages by using the F12 developer tools. Open the tools by pressing F12 or by clicking F12 developer tools on the Tools menu in Internet Explorer. For more information, see Using the F12 developer tools.

Dn720293.collapse_all(en-us,AX.60).gifDebugging in Visual Studio

To step through code in the online store pages, you must attach the worker process w3wp.exe that runs ASP.NET applications within IIS. To find the worker process, open IIS Manager, select the server name and click Worker Processes in the IIS section of the Features View pane. Then find the worker process that matches the Application Pool for the site. You can use IIS to find the name of the Application Pool for the site, and determine the user that the Application Pool runs under.