Visual studio 2010 debugger don't stop at Breakpoint?
I've problem using visual studio 2010 on my computer (windows 7 64-bits)
I'm doing a c# add-in for outlook. I could add it on outlook, try it, but I couldn't debug it because debugger don't stop at breakpoints. I search something about that on googl开发者_运维问答e and here, but I found nothing that help me.
Someone have a solution ?
Have you attached Visual Studio to the Outlook process? To attach to an existing process open Debug->Attach to Process...
Then you should be able to debug your own code.
Edit: Have a look at this. Basically there seem to be two ways this could be resolved:
Change your project start action to Start Project instead of Start external app
There's another link in that article pointing to another post. In that is quite a lot of stuff, but at the bottom there's descriped that VS can't debug multiple Frameworks at the same time (like 2.0 and 4.0). There are also some descriptions at how to work around this.
I experienced this same issue in Visual Studio 2012.
I genuinely literally just added MessageBox.Show("test");
into private void ThisAddIn_Startup(object sender, System.EventArgs e) { }
and the breakpoints that were already in existence were hit.
The cause of the original difficulty was the first time I experience an exception. Potentially the thread didn't exit cleanly and run auto generated finally and Shutdown methods.
精彩评论