How to debug a word add-in class library loaded in an external application?

燕鹏 李 301 Reputation points
2022-05-23T08:26:50.397+00:00

I developed a word add-in (a dll), which can be debugged in word. (in this case, when I press the debug button, word starts up)
204470-word-debug.png

but there is another application called wps that can also load word add-ins. this application is located at D:\Program Files\Kingsoft\WPS Office\11.1.0.11744\office6\wps.exe, so I set Start external program to this directory.
204621-wps-debug.png

But if I start debugging, the breakpoints are ignored by visual studio. What do I need to do now?

Microsoft 365 and Office | Development | Other
0 comments No comments
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.