| 17192 | } |
| 17193 | |
| 17194 | void ImGui::DebugBreakButtonTooltip(bool keyboard_only, const char* description_of_location) |
| 17195 | { |
| 17196 | if (!BeginItemTooltip()) |
| 17197 | return; |
| 17198 | Text("To call IM_DEBUG_BREAK() %s:", description_of_location); |
| 17199 | Separator(); |
| 17200 | 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."); |
| 17201 | Separator(); |
| 17202 | TextUnformatted("Choose one way that doesn't interfere with what you are trying to debug!\nYou need a debugger attached or this will crash!"); |
| 17203 | EndTooltip(); |
| 17204 | } |
| 17205 | |
| 17206 | // Special button that doesn't take focus, doesn't take input owner, and can be activated without a click etc. |
| 17207 | // 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