Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: martin1 on July 11, 2017, 05:25:29 am

Title: Debug methods for add-in development
Post by: martin1 on July 11, 2017, 05:25:29 am
I have a really nasty problem here with VS2015 and my EA add in written in C#. From another project I was used to starting EA right out of VS, using EA as "external program" to start the debugging. Now this leads to completely irreproducible exceptions, most of the time on EA.Elements, EA.TaggedValues, etc.
When I start EA normally and attach the EA process to the VS debugger, everything seems to behave normally.

I am compiling the dll without optimizations and in Debug configuration.

What is the recommended way of debugging add-ins?

And another question: What .NET framework version is officially supported by EA? I read about 3.5 and 4.0, but maybe this information is outdated? I am using 4.5 currently.

Thanks!

mk
Title: Re: Debug methods for add-in development
Post by: Helmut Ortmann on July 11, 2017, 02:30:41 pm
Hello,

in Visual Studio Project Properties, Debug for the DEBUG configuration activate
- Enable 'native code debugging'.

The forum also contains a thread about this.

Kind regards,

Helmut