let's say, I am debugging (with x64dbg) a specific program (in Windows, native programs, probably they are called standard MFC-kind programs ):
that program has a button
1) how to find out which line/command is executed by clicking on that button?
2) if that's possible to know that line before I click that button, it would be excellent.
I'd like a small "how-to" or steps what to do to get that.