简体   繁体   中英

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.

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". http://forums.getpaint.net/index.php?/topic/4209-how-to-debug-your-plugin/

You need to load the symbols for the PluginInterface.dll assembly. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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