Skip to content

Stack tool "noisy" output #8904

Closed
Closed

Description

@rokas-kbit

Version/Branch of Dear ImGui:

Version v1.92.2b, Branch: docking

Back-ends:

imgui_impl_opengl3.cpp + imgui_impl_sdl3.cpp

Compiler, OS:

Linux + gcc 13

Full config/build information:

Dear ImGui 1.92.2b (19222)
--------------------------------
sizeof(size_t): 8, sizeof(ImDrawIdx): 2, sizeof(ImDrawVert): 20
define: __cplusplus=202100
define: IMGUI_ENABLE_TEST_ENGINE
define: __linux__
define: __GNUC__=13
define: IMGUI_HAS_VIEWPORT
define: IMGUI_HAS_DOCK
--------------------------------
io.BackendPlatformName: imgui_impl_sdl3 (3.2.20; 3.2.20)
io.BackendRendererName: imgui_impl_opengl3
io.ConfigFlags: 0x00000081
 NavEnableKeyboard
 DockingEnable
io.ConfigViewportsNoDecoration
io.ConfigNavCaptureKeyboard
io.ConfigInputTextCursorBlink
io.ConfigWindowsResizeFromEdges
io.ConfigMemoryCompactTimer = 60.0
io.BackendFlags: 0x0000101E
 HasMouseCursors
 HasSetMousePos
 RendererHasVtxOffset
 RendererHasTextures
 RendererHasViewports
--------------------------------
io.Fonts: 3 fonts, Flags: 0x00000000, TexSize: 512,128
io.Fonts->FontLoaderName: stb_truetype
io.DisplaySize: 1440.00,900.00
io.DisplayFramebufferScale: 1.00,1.00
--------------------------------
style.WindowPadding: 8.00,8.00
style.WindowBorderSize: 1.00
style.FramePadding: 4.00,3.00
style.FrameRounding: 0.00
style.FrameBorderSize: 0.00
style.ItemSpacing: 8.00,4.00
style.ItemInnerSpacing: 4.00,4.00

Details:

Stack tool copies entire string used to produce the item id, which is not always ideal. For example, when window title is animated (Foo 99fps###WindowFoo) we get to copy entire thing, even though fps number is neither necessary nor desirable. In my specific case i have longer nice window name that includes icons from the icon font and a shorter ###... suffix that actually defines the window id. Nice name is quite long and utf-8 icon characters are not handled well when copying (actual character gets copied while it would be more useful if non-ascii characters came in \x??\x??\x??\x?? format.

Currently copied string is // Price | td:binance-futures:OMUSDT###PriceChartView | td:binance-futures:OMUSDT/ (last character is U+e157, an icon from icon font), but it would be preferable if it was //###PriceChartView | td:binance-futures:OMUSDT/\xee\x85\x97.

For now i am manually updating all buttons with icon characters to have a more test-friendly ###name and i am deleting anything before ### manually.

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:

ImGui::Button("A pretty long name \xee\x85\x97###short-id"); // Hover with stack tool and copy the path

Activity

  1. ocornut commented on Aug 26, 2025

    @ocornut
    Owner

    We should make this optional indeed.

    • convert high ranges to \x codepoints
    • strip before ###
  2. ocornut commented on Aug 26, 2025

    @ocornut
    Owner

    Pushed:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ 换网址