Outlook 2003: Debugging is not possible

  • Thread starter Thread starter Petr
  • Start date Start date
P

Petr

Hello Everybody,

I hope somebody can help me. I am using the german version of Outlook 2003,
win XP SR1.

How can I start the step by step debugging in VBA code in a Outlook 2003
form?

When I set a breakpoint ("stop"), Outlook ignores it and goes to the next
code line.

When an error happens, an error message is displayed, but debugging is not
possible.

Thanks in advance,

Petr
 
How are you compiling your addin ? - what method do you use for debugging
? - do yoy compile the program with debugging information and then loads
Outlook up ? or what do you do ?

I have debugget a lot of forms using the danish version of Outlook 2003
and I have not encountered any problems with it.


Regards.

Lars Roland
 
Hi Lars,
this Code is written direct (above Tolls/Forms/Create Form) in the Outlook
Form, like this sample:

Sub test()
Set oSession = CreateObject("Mapi.Session")
STOP
oSession.Logon , , False, False
 
In Outlook 2003, in your open custom form item, does the Tools | Forms |
Script Debugger command work? If so, set a breakpoint.

If not, then rerun Office/Outlook setup and install the Web Debugging
component found under Office Tools -- HTML Source Editing/Web Scripting.
 
Use the debugging feature that Sue describes in her answar to you post, or
insert subs in yu form to print the state of your objects - but using the
build in debug facility in VS is much better/easier
 
Hi Sue,
the Web Scripting was not installed!
Now I am happy, I can start the debugging!

Thank you!
 
Back
Top