Alternative debug mechanism - 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

To debug our custom assembly, you need to attach the debugger to the Desktop Client process.

  1. Press Play or F5 on the Training Client assembly. It will compile and show a form like this:

  2. Then start the Desktop Client and log in.

  3. Leave the Desktop Client running and stop the client training project by clicking Close on the UserControl TestContainer form.

  4. Click Tools > Attach to process, which will show a dialog like the one below.

  5. Select the process named Desktop_Client.exe, and click Attach. This will start the debugger, attach it to the Desktop Client process, and whenever your Client API is invoked from within that process, any breakpoints you set in your code will fire.

    You will now be able to debug. You have to follow the same sequence each time you make a change to the client training project