| |||
| Home > RealView Debugger Predefined Macros > Predefined macros listed by function > User interaction macros | |||
RealView Debugger provides several predefined macros that enable you to get user input or prompt the user to take action. User interaction macros can be used in expressions on the command line and can be called from macros that you create yourself.
Be careful when using these macros as part of test scripts.
For example, if you attach the prompt_text macro
to a breakpoint that is triggered frequently in your program, without
testing the return value, it is possible that the debugger displays
the prompt message repeatedly in an endless loop.
Table 3.8 contains a summary of the predefined user interaction macros.
Table 3.8. User interaction macros
| Description | See |
|---|---|
Displays a file containing message text | prompt_file |
Displays a dialog box containing message text and a choice list | prompt_list |
Displays a dialog box containing message text and buttons (Ok and Cancel) | prompt_text |
Displays a dialog box containing question text and buttons (Yes and No) | prompt_yesno |
Displays a dialog box containing question text and buttons (Yes, No and Cancel) | prompt_yesno_cancel |