在已编译的dll中设置断点 - Visual Studio 2015

时间:2016-07-11 02:18:41

标签: c# asp.net visual-studio dll visual-studio-2015

我有一个我在VS2015(ASP.NET)中调试的网站。

我正在尝试在一些引用的DLL中设置一些断点。

Another article提到了

"If it is a file (dll) reference, you need the debugging symbols (the "pdb" file)
to be in the same folder as the dll. 
Check that your projects are generating debug symbols 
(project properties => Build => Advanced => Output / Debug Info = full); 
and if you have copied the dll, put the pdb with it".

但是我似乎无法在项目属性中找到高级构建选项吗?

enter image description here

2 个答案:

答案 0 :(得分:1)

因为您使用的是网站,而不是Web应用程序

网站没有高级选项。但是在Web应用程序中,您可以将调试信息设置为完整。 As you can see image in web application project

答案 1 :(得分:0)

你看过编译过的库/ DLL的代码吗?那么你怎么能在那里设置断点。您只能在应用程序内部设置断点,处理程序由您自己的逻辑进行。

您可以设置调试true以调试您的应用程序,您也可以调试使用调试模式导出的DLL的逻辑。您无法设置断点或调试使用发布模式创建的库。