Debugging add-ins
To debug an add-in, follow these steps:
  1. Confirm that the add-in is deployed to the well known folder where the Desktop applications will access it. Typically this is already done because add-ins created with the ESRI Visual Studio integrated development environment (IDE) template are automatically deployed each time they are built.
  2. Establish the target application in the project debug settings dialog box. For example, to use ArcMap.exe as the debugging application, do the following:
    1. Right-click the add-in project in the Solution Explorer window and click Properties.
    2. Click the Debug tab on the property page.
    3. Under Start Action, click the Start external program radio button to use ArcMap.exe in the Bin folder of your ArcGIS install directory as shown in the following screen shot:
Once an add-in has been loaded in an application, subsequent changes to the add-in project will not appear until the running application is restarted.
Depending on which version of .NET you are targeting, you may have to alter the Desktop application's configuration file to get debugging to work properly. For example, if you've written an add-in for ArcMap that uses .NET 4.0, make sure v4.0 is set as the supported run-time in ArcMap.exe.config which resides beside ArcMap.exe.

[XML]

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0.30319"/>
<!--<supportedRuntime version="v2.0.50727"/>-->
</startup>
...
</configuration>
Conversely, if you can't debug your .NET 3.5 (or under) add-in, make sure .NET 2.0 is listed as the supported run-time in your desktop configuration file.

[XML]

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727"/>
<!--<supportedRuntime version="v4.0.30319"/>-->
</startup>
...
</configuration>
After changing a desktop configuration file, you may have to restart Visual Studio for the changes to take effect.

最新文章

  1. 关于pushState
  2. C# 网页信息采集(数据访问)
  3. Mysql中explain命令查看语句执行概况
  4. 每天一个linux命令30)--chgrp命令
  5. css控制div强制换行
  6. 团队项目第二阶段个人进展——Day10
  7. C# foreach内部原理
  8. C# Work PPT to PDF
  9. 如何用jQuery获取选中行固定列的数据
  10. Windows10环境下使用VisualSVN server搭建SVN服务器
  11. Python3+mitmproxy安装使用教程(Windows)
  12. 关于Haclon使用GPU加速的代码实例
  13. Entity Framework Code First(概要)
  14. TrueCrypt 7.1a Hashes
  15. 1.尽量以const ,enum,inline替换define
  16. MySql&#160;定时任务的使用
  17. Java基础-Java中23种设计模式之常用的设计模式
  18. 保密员(baomi)
  19. Java多线程(一) —— 传统线程技术
  20. 用emoji表情包来可视化北京市历史天气状况!

热门文章

  1. CF 429B B.Working out 四个角递推
  2. PyCharm的一些使用技巧
  3. 2012 Noip提高组 Day1
  4. java 阻塞队列(转)
  5. Cordova 系列之创建一个iOS项目
  6. 黑马Lambda表达式学习 Stream流 函数式接口 Lambda表达式 方法引用
  7. 牛客练习赛42D(性质、数学)
  8. Arch Linux 安装记(安装到移动硬盘)
  9. HTML &lt;form&gt; 标签的 enctype
  10. 原生ajax提交php后台接收不到问题