如何调试sampleime代码(不是.exe解决方案) [英] How can I debug sampleime code(not a .exe solution)

查看:428
本文介绍了如何调试sampleime代码(不是.exe解决方案)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从MSDN下载输入法编辑器示例项目。

这是一个使用文本服务框架(TSF)支持中文输入的项目



它可以通过为你的IME DLL创建一个安装项目来运行(使用安装盾牌)。



我的问题是如何调试这个项目?因为它不是用visual studio运行它让我疯了..



当我点击VS'调试按钮我得到消息sampleIME.dll不是有效的win32应用



plz帮帮我..下面是sampleIME项目下载链接





https://code.msdn.microsoft.com/windowsdesktop/Input-Method-Editor-IME-b1610980



我的尝试:



我做不了什么......我刚刚在该项目中添加了本地日志模块,但我真的需要调试

I've download Input Method Editor sample project from MSDN.
It is a project that support Chinese input by using the Text Service Framwork(TSF)

And it can be run with creating a setup project for your IME DLL(using install shield).

My question is how can i debug this project? because it is not run with visual studio it makes me crazy..

when i click VS' debug button i got message "sampleIME.dll" is not a valid win32 application

plz help me.. below is sampleIME project download link


https://code.msdn.microsoft.com/windowsdesktop/Input-Method-Editor-IME-b1610980

What I have tried:

I couldn't do anything... i just added local logging module in that project but i really need to debugging

推荐答案

重要:您必须在调试模式下构建dll并使用TRACE宏。



我知道按可用性排序的不同选项:



a)在Visual Studio中,将exe设置为调试设置作为命令。这将启动应用程序,dll也可以调试。



b)使用调试视图



c)最后一个选项是将调试输出写入文本文件。
Important: You must build the dll in debug mode and use the TRACE macro.

I know different options sorted by usability:

a) in Visual Studio, set the exe in the Debug Settings as Command. This launches the app and the dlls also are debugable.

b) use Debug View

c) last option is to write debug output into a text file.


这篇关于如何调试sampleime代码(不是.exe解决方案)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆