用于监视从代码触发的事件的软件 [英] Software to monitor events fired from code

查看:147
本文介绍了用于监视从代码触发的事件的软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一段代码中遇到麻烦,我认为这与一个鼠标点击事件有关,但我似乎无法捕捉我的代码中的确切事件。我使用C#调试器来遍历我的代码,在我的一个事件结束之后,代码只是锁定了。

I'm having trouble within a block of code that I believe is related to a mouse click event but I cannot seem to capture the exact event within my code. I've used the C# debugger to step through my code and after the end of one of my events the code simply locks up.

我的帖子的目的是要问如果有任何软件会观看我的进程,并且让我知道在我点击F11键并且代码冻结之后关闭的事件。我尝试过SysInternals的 procmon.exe ,但这并不告诉我哪些事件正在关闭。

The purpose of my post is to ask if there is any software that will watch my process and let me know the events that are firing off after I hit the F11 key and the code freezes up. I've tried SysInternals' procmon.exe but that isn't telling me which events are firing off.

推荐答案

你尝试过Spy ++吗?它是Visual Studio附带的工具(至少2003年和2005年)。在我的默认2003和2005安装,Spy ++是在:
开始|程序文件| Microsoft Visual Studio 200X | Visual Studio工具| Spy ++

Have you tried Spy++ ? It's a tool that comes with Visual Studio (at least 2003 & 2005). On my default 2003 and 2005 installs, Spy++ is at: Start | Program Files | Microsoft Visual Studio 200X | Visual Studio Tools | Spy++

运行Spy ++后,从搜索菜单中选择查找窗口...。将Finder工具拖动到要在其上观看事件的窗口或控件,然后单击确定。右键单击树中选择的项目,然后选择消息。这将打开一个窗口,显示消息,当他们触摸你的感兴趣的窗口。

After you run Spy++, select Find Window... from the Search menu. Drag the "Finder Tool" to the window or control you want to watch events on and click OK. Right-click on the item selected in the tree and select "Messages". This will bring up a window that shows the messages as they hit your window of interest.

如果Spy ++没有得到你需要的,那么管理间谍?它似乎像Spy ++,但专门用于托管代码。我没有尝试过。

If Spy++ doesn't get what you need, what about Managed Spy? It appears to be like Spy++ but specifically for managed code. I haven't tried it.


[It]显示了基于.NET的客户端应用程序中控件的树状视图。您可以选择任何控件,并获取或设置其上的任何属性。您还可以记录控件引发的一组过滤的事件。

[It] displays a treeview of controls in your .NET-based client application. You can select any control and get or set any property on it. You can also log a filtered set of events that the control raises.

这篇关于用于监视从代码触发的事件的软件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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