简体   繁体   中英

C# - How to watch event queue (windows forms events)

I have a Windows Forms program that fires lots of events (from an API that I have no access to its code). I have to do some processing in each event fired, I understand that all events are queued in an "event queue". How can I watch the event queue content? I want to watch all the events queued, only in debug mode, I don't need to do any process with the event queue, just to understand what is really happening when process all events fired by that creepy API. Is there an option for do that in the IDE?

Normal events are not queued.

You may be talking about Windows messages; if so, use Spy++.

You can also find the functions that raise the events (using Reflector), then add breakpoints to them by clicking Debug, New Breakpoint, Break At Function.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM