简体   繁体   English

在Visual Studio中调试插件

[英]Debugging a plugin in Visual Studio

I have a configuration tool application which uses a custom written plugin called "PluginInterface.dll", which using the config tool I noticed a bug which I traced back to the plugin. 我有一个配置工具应用程序,该应用程序使用一个名为“ PluginInterface.dll”的自定义书面插件,该应用程序在使用配置工具的过程中发现了一个我追溯到该插件的错误。

I would really like to be able to debug this to pinpoint the error but I've been unable to find out how to do this. 我真的很想能够调试它以查明错误,但是我一直无法找到如何做到这一点。 I first tried attaching the debugger to the process (didn't really expect that to work) then I had a search around. 我首先尝试将调试器附加到进程中(并没有真正期望它起作用),然后进行了搜索。

Very few results, I've followed this guide which describes how to have VS launch an external application when it starts to debug but I just got the standard "Cannot run a class library error". 结果很少,我遵循了该指南,该指南描述了VS在调试时如何启动外部应用程序,但是我只是得到了标准的“无法运行类库错误”。 http://forums.getpaint.net/index.php?/topic/4209-how-to-debug-your-plugin/ http://forums.getpaint.net/index.php?/topic/4209-how-to-debug-your-plugin/

You need to load the symbols for the PluginInterface.dll assembly. 您需要加载PluginInterface.dll程序集的符号。 See here for information on doing this. 有关执行此操作的信息,请参见此处 This should allow you to step into the code from that assembly (and set breakpoints in its code files) as though it were inside your current assembly. 这应该使您能够从该程序集中进入代码(并在其代码文件中设置断点),就像它位于当前程序集中一样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM