我正在尝试使用 Visual Studio Community 2013 为 Notepad++ 编写一个插件
dll 从解决方案构建得很好,如果我将它复制到 notepad++/plugins 目录,我可以测试功能。但是,我现在想调试它,但无法启动调试器。我尝试关注 paint.net guide但我仍然得到错误
Unable to start program .....dll
在配置属性 - 调试下的项目属性中,我有以下设置:
Command = C:\tools\Notepad++\notepad++.exe
Working Directory = C:\tools\Notepad++
配置属性 - 构建事件 - 我拥有的构建后事件:
Command Line = copy "$(TargetPath)" "C:\tools\Notepad++\plugins"
注意:路径在 Program Files 之外以避免复制时出现 UAC 问题。
还有哪些其他选项可能导致此问题?
最佳答案
确保您有一个启用了符号的 DLL 调试版本,并使用 Debug -> Attach to Process 菜单命令在运行时附加到 notepad++ 进程。
关于c++ - 如何调试 Notepad++ DLL 插件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30825649/