| 22987 | } |
| 22988 | |
| 22989 | void ImGui::DebugBreakButtonTooltip(bool keyboard_only, const char* description_of_location) |
| 22990 | { |
| 22991 | if (!BeginItemTooltip()) |
| 22992 | return; |
| 22993 | Text("To call IM_DEBUG_BREAK() %s:", description_of_location); |
| 22994 | Separator(); |
| 22995 | TextUnformatted(keyboard_only ? "- Press 'Pause/Break' on keyboard." : "- Press 'Pause/Break' on keyboard.\n- or Click (may alter focus/active id).\n- or navigate using keyboard and press space."); |
| 22996 | Separator(); |
| 22997 | TextUnformatted("Choose one way that doesn't interfere with what you are trying to debug!\nYou need a debugger attached or this will crash!"); |
| 22998 | EndTooltip(); |
| 22999 | } |
| 23000 | |
| 23001 | // Special button that doesn't take focus, doesn't take input owner, and can be activated without a click etc. |
| 23002 | // In order to reduce interferences with the contents we are trying to debug into. |
nothing calls this directly
no outgoing calls
no test coverage detected