|
Re: Using a GUI for debugging [message #1723303 is a reply to message #1723299] |
Sun, 14 February 2016 01:24 |
David Vavra Messages: 1426 Registered: October 2012 |
Senior Member |
|
|
Most, if not all, GUI programs are reactive. That is, they respond to external stimuli. I've found it best to insert breakpoints in the button (and other) handlers vs. trying to step through the code from the beginning. which can lead to insanity.
Start your program and stop at the beginning. Insert breakpoints in your handlers (you can also do this ahead of time); continue to the next breakpoint; and press the button of current interest. You can step through the handler code when the breakpoint is reached and the GUI will wait for it to exit. Don't try stepping into any GUI functions unless you are also trying to debug them as a GUI developer.
|
|
|
Powered by
FUDForum. Page generated in 0.02633 seconds