简体   繁体   中英

VS2010 can't debug, breakpoints are never hit

My Excel AddIn was targeted to .NET 35 SP1, I just changed it to target .NET 4. Now I am not able to debug b/c breakpoints never get stopped. I can set breakpoints, but debugger never stops at any breakpoint. I check that all projects are in Debug configuration. thanks

I assume because it is an Add In, that you are attaching to the process, rather than the run/debug method?

If this is true, and you are attaching to the process make sure that you are attaching using Managed (v4.0), instead of Managed (v2.0, v1.1, v1.0). Debug->Attach to Process->Attach to:

My assumption is that your AddIn has been disabled in the registry or isn't being loaded. Check the Add-Ins window to see your plugins status.

Make sure that the build configuration is set to Active(Debug) or Debug under the build tab of the properties window.

在此输入图像描述

Go to the screen shown for Debug, click the Advanced button on the lower right of that screen, make sure Debug Info is NOT "none". In other words, make sure the PDB is generated.

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