BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I debug an office Add-In?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ActiveX Controls Development
View previous topic :: View next topic  
Author Message
Robert Oschler
Guest





PostPosted: Tue Oct 28, 2003 4:28 pm    Post subject: How do I debug an office Add-In? Reply with quote



I have written a Office Add-In in Delphi 6 sp 2, designed to work with MS
Word 2000. The Add-In does show up on the Word main toolbar with the test
button I created. When I hit the test button, the code associated with the
event handler does fire but none of my breakpoints in that code are hit. In
fact, none of my breakpoints anywhere are hit, not even in the Initialize
and Finalize events (IDTExtensibility2 interface).

Someone made the suggestion that if there is a 'space' in the project file's
directory path, that debugging won't work, but the directory path to the
source file's and EXE does not contain a space.

I launch the debugging session by putting the path to the MS Word EXE file
in the Project->Run parameters, and then hit F9.

What could I try doing to fix this so my breakpoints will be hit properly?

thx

--
Robert Oschler
http://www.dog-images.com
-- Devoted to providing free info on the health, nutrition, and training of
dogs.



Back to top
Brian Cook
Guest





PostPosted: Tue Oct 28, 2003 4:54 pm    Post subject: Re: How do I debug an office Add-In? Reply with quote



Quote:
What could I try doing to fix this so my breakpoints will be hit properly?

Call DebugBreak (it's in Windows). This is a "hard-coded" breakpoint
which means the process WILL stop. If the process is running under a
debugger, the debugger will get control. If the process is NOT running
under a debugger and the JIT (Just In-Time) debugger is configured, the
debugger will be started and get control. If the process is NOT running
and the JIT is NOT configured, the process, I believe, is terminated.

In the worst case, you'll have to setup Delphi as the JIT.

Word of warning: do NOT forget to remove the DebugBreak when you're
finished!

Good luck, Brian

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi ActiveX Controls Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.