Author Topic: Debug methods for add-in development  (Read 3462 times)

martin1

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Debug methods for add-in development
« 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

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Debug methods for add-in development
« Reply #1 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
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)