Skip to main content
gamedev.net
🔒 Locked

MFC window proc function trace

Started by derek7 Jun 13, 2006 at 10:00 AM 0 replies 700+ views
Original Post
derek7
derek7
in my card game, that own many windows.and when you debug it, many message proc function called by windows system. how to trace these function? because many the functions exist , it is hard to place break point on every Onxxxx() function. are there any convenicent way? Must I hard debug it?
Emmanuel Deloget
Emmanuel Deloget
Most of the time, you only debug the functions that behave wrongly so the number of breakpoints that you have to setup is limited.

Beside that, I don't know any helpful mecanism that would help you in this specific case - you'll have to put your breakpoints in your message handlers. Command messages (menu selection or button clicks) are handled in the same way, meaning that if you step out one of your command handler, you'll return to the message handler dispatcher and you'll be able to put a breakpoint into it.

HTH,

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.