的Visual Studio 2015年调试自定义控件 [英] Visual Studio 2015 Debugging Custom Control

查看:496
本文介绍了的Visual Studio 2015年调试自定义控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编译成被开发使用Visual Studio 2012的,并部署到生产环境没有问题的DLL自定义控件。这些控件加载为插件使用反射时,应用程序加载。

I have custom controls compiled as DLLs that were developed with Visual Studio 2012 and are deployed to a production environment with no issues. These controls are loaded as "plugins" using reflection when the application loads.

当我打开解决方案(S)与Visual Studio 2015年和尝试设置一个破发点,这符号将被装载在破发点的状态,但它不会破坏时部分代码被击中。

When I open the solution(s) with Visual Studio 2015 and attempt to set a break point, the break point states that symbols are loaded but it will never break when that section of code is hit.

在Visual Studio 2012中,这些破发点,破正确。我试图重新编译的DLL在Visual Studio 2015年,他们仍然不会打破。所有PDBS都与DLL文件也是如此。是什么原因导致这样的想法?

In Visual Studio 2012 these break points break correctly. I have tried to recompile the DLLs in Visual Studio 2015 and they still will not break. All PDBs are with the DLLs as well. Any ideas on what causes this?

我已经去了,虽然都在VS调试设置和已经卸载/重新安装VS,仍然有同样的问题。

I have went though all the debugging settings in VS and have uninstalled / reinstalled VS and still have the same issue.

推荐答案

确保优化是DLL项目禁用,PDB一代是不是没有和构建路径是从哪里DLL被其他项目所消耗相同。
很多时候只是清洁的整体解决方案,删除文件夹的OBJ PDBS / DLL和重建解决了这个问题。

Make sure that optimization is disabled for DLL project, PDB generation is not none and build path is same from where the DLL is being consumed by other project. Many times just Cleaning whole solution, deleting Obj folder PDBs/dlls and rebuilding solves the problem.

这篇关于的Visual Studio 2015年调试自定义控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆