 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Robert Oschler Guest
|
Posted: Tue Oct 28, 2003 4:28 pm Post subject: How do I debug an office Add-In? |
|
|
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
|
Posted: Tue Oct 28, 2003 4:54 pm Post subject: Re: How do I debug an office Add-In? |
|
|
| 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 |
|
 |
|
|
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
|
|