Onenote扩展程序开发调试方法

Posted by Valuex on June 4, 2023

1 在VS中编译程序,关闭OneNote

image

2 安装编译好的扩展,此时保持OneNote 关闭

image

3 启动OneNote, 进入VS调试模式

VS: Debug -> Attach to Process Open
image

4 在VS中将扩展挂载到dllhost.exe上

attach to a DllHost.exe having “Managed {.NET version}” in the Type column of the Attach to Process dialog.
image

5 在VS中设置断点,在OneNote 中启动扩展,愉快的开始调试吧