Debugging my Outlook Add-in

Add-in Express™ Support Service
That's what is more important than anything else

Debugging my Outlook Add-in
 
Oliver Degnan




Posts: 54
Joined: 2005-02-03
I am unable to debug my Outlook add-in using Vsiaul Studio.NET.

Here is what I am doing:

- in my project properties, I set the debug mode to Program and added the path to Outlook.exe

- I set my breakpoints in the project
- I Start debugging
- VS.NET goes into debug mode, opens Outlook very briefly and then stops debugging to return into design mode.

What am I doing wrong here?

Thank you in advance for your help.

Oliver
Posted 16 Feb, 2005 14:24:59 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Hi Oliver.
I have three questions. Where did you add the breakpoint? Do you use the Debug configuration for your add-in project? Does your add-in load successfully in Outlook?
Posted 16 Feb, 2005 15:28:05 Top
Guest


Guest


1. I set the breakpoint in one of my methods.
2. Yes, I use the Debug configuration.
I set the Debug Mode to "Program" and the Start Application to "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"
3. Yes, the add-in loads perfectly.

Oliver
Posted 17 Feb, 2005 09:30:27 Top
Oliver Degnan




Posts: 54
Joined: 2005-02-03
1. I set the breakpoint in one of my methods.
2. Yes, I use the Debug configuration.
I set the Debug Mode to "Program" and the Start Application to "C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE"
3. Yes, the add-in loads perfectly.

Oliver
Posted 17 Feb, 2005 09:31:13 Top
Guest


Guest


Hi Oliver.

Who calls your method? What does your method do?
Posted 17 Feb, 2005 10:58:17 Top
Oliver Degnan




Posts: 54
Joined: 2005-02-03
Right now, it's just opening another empty form.

O.
Posted 17 Feb, 2005 13:27:55 Top
Oliver Degnan




Posts: 54
Joined: 2005-02-03
I am having the same issue when trying to debug the Sample COMAdd-in that comes with the Outlook Security Manager.

O.
Posted 17 Feb, 2005 13:28:36 Top
Sergey Grischenko


Add-in Express team


Posts: 7233
Joined: 2004-07-05
Oliver,

Is your method called after Outlook has started or you have a button which calls your method?
Posted 17 Feb, 2005 15:06:33 Top
Oliver Degnan




Posts: 54
Joined: 2005-02-03
It's a method that opens a new Windows Form.

(Even if I put a breakpoint on the InitializeAddin event handler, the debugger won't break into it.)


Oliver
Posted 17 Feb, 2005 19:37:51 Top
Oliver Degnan




Posts: 54
Joined: 2005-02-03
It actually, during debugging startup, gives me an Outlook error message asking me if I would like to disable this add-in because of an error.
Posted 17 Feb, 2005 19:38:56 Top