Debugging hints - SmartPlant Foundation - IM Update 44 - Customization & Programming - Hexagon

SmartPlant Foundation Customization

Language
English
Product
SmartPlant Foundation
Search by Category
Customization & Programming
SmartPlant Foundation / SDx Version
10

We had a particular environment that we were unable to get the custom server code to debug. Follow the steps below to ensure you hit the breakpoint.

  1. Click Tools > Options, and click Debugging > General.

  2. Clear Enable Just My Code (Managed only).

    Debugging Hints (1)

  3. Once you attach, you should see only one copy of your custom assembly in the loaded modules list.

    To view the loaded modules list click Debug > Windows > Modules.

    Debugging Hints (3)

If there are two copies of your custom assemble, where one has a path in the ASP.NET cache area, the debugger will not break in your code. Completing steps 2 and 3 above should fix this problem.

If you find that multiple copies of your dll are loading, you can fix it by explicitly telling Visual Studio which symbols to load.

  1. Right click on one of your duplicate DLLs.

    Debugging Hints (4)

  2. Click Symbol Settings on the shortcut menu.

    Debugging Hints (5)

  3. Type in your build location, and choose to search that location only.

    Debugging Hints (6)

  4. Rebuild and you should only have one copy of your DLL in the loaded modules listing.