Preparing to debug

To prepare your integrating application for debugging, complete the following procedure.

  1. Build and deploy the integration.

    Be sure that you have built the Debug version of your project.

  2. Start Microsoft Dynamics GP.

    Microsoft Dynamics GP must be running so that your integrating application is loaded.

  3. Set breakpoints in your code.

    Within Visual Studio, set breakpoints in your code to indicate where you want processing to wait.

  4. Choose to attach to a process.

    Since your integrating application is running within the Dynamics.exe process, you must attach the Visual Studio debugger to this process. From within Visual Studio, choose Attach to Process from the Debug menu.

  5. Select the Dynamics.exe process.

    In the Attach to Process window, locate the Dynamics.exe process and select it in the list.

    Click Attach to attach to the process. Control will be returned to Visual Studio.