This project has moved and is read-only. For the latest updates, please go here.

How to Get Breakpoints Working?

Nov 17, 2015 at 3:31 PM
I can't get the breakpoints to work on a NO Word addin. I created the addin using the NO Toolbox. I am using the project created by the toolbox, no mods. I load the project into VS 2015 Community and set a breakpoint on the About click . I run it using F5. Word 2010 loads and the addin installs. I click on About and the message shows the it doesn't breakpoint. If I debug a simple C# program it breakpoints fine. I have never debugged a DLL. Is there something I need to set?

I cleaned the project and built it again. I checked the debug properties and everything appears right, at least to me. I set breakpoints on other lines and nothing works.

Any suggestions are appreciated.
Nov 17, 2015 at 9:34 PM
VS 2015 use the .Net 4.5 Debugger as default. If you have another .Net Framework version in your project you have to create a "Winword.exe.config" file in the same directory as Winword.exe.

This is an Winword.exe.config example content for targeting .Net framework version 2.

<supportedRuntime version="v2.0.50727"/>

(This is not a NetOffice specific behavior)
Nov 18, 2015 at 1:42 AM
Thanks!!! Works now. The problem was there was already a WINWORD.EXE.CONFIG in the directory pointing to v2.0.50727.