Create a class-based unit test that derives from matlab.uitest.TestCase
and contains a keyboard
statement.
Run the test. MATLAB® enters debug mode at the keyboard
command. The figure is locked and you cannot interactively press the button.
While in debug mode, unlock the figure. You can interact with the button.
Continue execution of the test. The test completes and closes the figure during tear down.