MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / DebugBreakButtonTooltip

Method DebugBreakButtonTooltip

imgui_tiny_app/imgui/imgui.cpp:22989–22999  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22987}
22988
22989void 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected