ebiten-imgui icon indicating copy to clipboard operation
ebiten-imgui copied to clipboard

Show original C error messages

Open Omustardo opened this issue 6 months ago • 1 comments

For crashes, it would be great if it showed the original error message rather than the original line number. So instead of:

File: /home/runner/work/cimgui-go/cimgui-go/cimgui/imgui/imgui.cpp, Line: 9932
exit status 1

pointing to https://github.com/gabstv/cimgui-go/blob/main/cimgui/imgui/imgui.cpp#L9932

It would instead give the error: Mismatched Begin/BeginChild vs End/EndChild calls: did you forget to call End/EndChild? or even the full line: IM_ASSERT_USER_ERROR(g.CurrentWindowStack.Size == 1, "Mismatched Begin/BeginChild vs End/EndChild calls: did you forget to call End/EndChild?");

I'm not familiar with cgo so I'm not sure how feasible it is, but it would definitely save a lot of time when debugging.

Omustardo avatar Aug 14 '24 01:08 Omustardo