From kdevelop-bugs Sun Oct 30 06:47:47 2005 From: kdevelop-bugs-admin () barney ! cs ! uni-potsdam ! de Date: Sun, 30 Oct 2005 06:47:47 +0000 To: kdevelop-bugs Subject: [Bug 109921] Debugger should show unicode strings Message-Id: <20051030064747.29162.qmail () ktown ! kde ! org> X-MARC-Message: https://marc.info/?l=kdevelop-bugs&m=118306943008289 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=109921 ------- Additional Comments From h.eichmann gmx de 2005-10-30 07:47 ------- Fyi: to view the dgb feature request, go to http://sources.redhat.com/cgi-bin/gnatsweb.pl enter 1998 and click on view. No response so far. An interesting thought was suggested by Vadim Zeitlin here: http://groups.google.de/groups?hs=slQ&hl=de&client=firefox-a&rls=org.mozilla:en-US:official&q=%22How%20to%20see%20wxString%20contents%20in%20KDevelop%22%20vadim&btnG=Suche&sa=N&tab=wg He said: I'm far from being a gdb guru but here is a function that works (put this in your ~/.gdbinit): define pu set $uni = $arg0 set $i = 0 while (*$uni && $i++<100) if (*$uni < 0x80) output/c (char)(*$uni++) else output/x *$uni++ end end end define pws pu $arg0.c_str() end Use "pu" with "wxChar *" or "pws" with wxString. I guess the same defines (or a similar for qstrings) could be sent to gdb on start of every debug session. Then kdevelop could print unicode strings by just executing pu or pws (or maybe pqstring), if such a value is to be shown. Heiner